Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Script to sync important folders from workstation to Google Drive
- #https://rclone.org/commands/rclone_sync/
- #How can I fully log all bash scripts actions - https://serverfault.com/questions/103501/how-can-i-fully-log-all-bash-scripts-actions
- exec 3>&1 4>&2
- trap 'exec 2>&4 1>&3' 0 1 2 3
- exec 1>>/home/hjalti/bin/log.out 2>&1
- echo $(date)
- echo "sync my scripts folder to Google Drive folder ubu-backup"
- rclone sync /home/hjalti/my-Scripts Google-Drive:ubu-backup/my-Scripts
- echo "sync Documents folder to Google Drive folder ubu-backup"
- rclone sync /home/hjalti/Documents Google-Drive:ubu-backup/Documents
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement