Last active
December 24, 2020 17:19
-
-
Save immanuelpotter/89028e8a6d00df4efa4312e144b59d11 to your computer and use it in GitHub Desktop.
copy-to-icloud.sh
This file contains 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/bash | |
usage() { | |
echo "$0 [SRC] [DST]" | |
echo "Example iCloud path: /Users/$(whoami)/Library/Mobile Documents/com~apple~CloudDocs/" | |
exit 99 | |
} | |
[[ -z "$1" || -z "$2" ]] && usage | |
rsync --verbose --recursive --delete-before --whole-file --times --exclude=".DS_Store" --exclude=".Trash/" "$1" "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment