设立两个Google Drive之间的同步

为了避免一个Google Drive翻车,我打算把两个盘同步起来。

配置好两个Google Drive – Rclone Config

参考本馆档案,配置好两个Google Drive。

Rclone Sync

# -n or --dry-run 试一试
rclone sync -n gdrive_omgd:/test_sync gdrive_schoolcraft:/test_sync
2020/05/17 13:56:10 NOTICE: clean_snap.sh: Not copying as --dry-run

# verbose --verbose/-v & show progress --progress/-P
rclone sync -v -P gdrive_omgd:/test_sync gdrive_schoolcraft:/test_sync

Auto Run by Crontab

# 每天凌晨0030am开始sync
echo '30 20    * * *   root    /usr/bin/rclone sync -v gdrive_omgd:_vps gdrive_schoolcraft:_vps >>/root/rclone.log 2>&1' >> /etc/crontab

Leave a Reply