icloud-backup-script
Backup your iCloud Drive documents using rsync
About
This is a simple script that I use to backup my iCloud Drive documents, in case I ever get clusterfucked.
It will backup the entire contents of the iCloud Drive directory (~/Library/Mobile Documents/
). Note: it will only backup what has been downloaded to your Mac.
Usage
- Clone this repo
- Update the
DEST
variable to point to where you want the backup stored - Run the script,
./icloud_backup.zsh
. Add--dry-run
option to the script to preview before running.
Example
$ ./icloud_backup.zsh
Source: /Users/jesse/Library/Mobile Documents/
Destination: /Users/jesse/Desktop/dest/
Starting rsync backup...
# rsync output...
Done!