Last active
July 14, 2022 07:19
-
-
Save brysonreece/b0b316f72f59390c6f42af7c5c832b79 to your computer and use it in GitHub Desktop.
Bash/ZSH function to create a compressed Rsync backup of your iCloud Drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
icloud-backup() { | |
rsync --verbose --progress \ | |
--recursive --whole-file --times \ | |
--exclude=".DS_Store" --exclude=".Trash/" \ | |
--compress --compress-level=3 \ | |
~/Library/Mobile\ Documents/com~apple~CloudDocs/ $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment