📜  在 colab 上使用 rclone - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:15.237000             🧑  作者: Mango

代码示例1
## on jupyter notebook cells
# install rclone
! curl https://rclone.org/install.sh | sudo bash
# setup the default config file
! mkdir /root/.config/rclone/
config = """
RCLONE_ENCRYPT_V0:
8nKbmBes1LhfViVPk1b4rfmXeDLwjOgFRCQSKQJARLt43kY6hyutSoKXZ+YelRSlNGStD1wNmA3scjoiDgdYEDpdx/DQsLUzytbwsOc3cbnZyWaywPvSFqkG
"""
with open('/root/.config/rclone/rclone.conf', 'w') as file:
  file.write(config)
# use rclone
! rclone copy a b