RCLONE (Google Drive - Raspberrypi) Backup Files
--Resource
--
1. Install
sudo apt install rclone
2. Config
rclone config
# create job named "sync_google_drive"
Create a folder in google drive named "my_backup_folder"
3. Create backup shell script
mkdir /home/pi/Drive_Sync
cd /home/pi/Drive_Sync/
touch sync_to_drive.sh
nano sync_to_drive.sh
Paste following script inside sync_to_drive.sh file
/usr/bin/rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s "/home/pi/TEMPERORY" "sync_google_drive:my_backup_folder"
4. Add to cronjob
crontab -e
Paste following script as last line
*/10 * * * * sh /home/pi/Drive_Sync/sync_to_drive.sh
Usefull commands
List remotes
rclone listremotes