I'm trying to sync my local Documents from my laptop to my iCloud documents folder but I can't get it work perfectly. It syncs files one way but it doesn't delete them on destination when I delete files on source and this is rsync what I'm trying to use:
rsync -ahP /Users/USERNAME/Documents /Users/USERNAME/Library/Mobile\ Documents/com~apple~CloudDocs/ 2> ~/Desktop/rsyncErrors.txt
I'm trying to do this because as far as I know if I have moved my Desktop and Documents to iCloud they will not be backkedup with time machine at all?
Or is there better way to do this or better rsync sript?
rsync -ahP /Users/USERNAME/Documents /Users/USERNAME/Library/Mobile\ Documents/com~apple~CloudDocs/ 2> ~/Desktop/rsyncErrors.txt
I'm trying to do this because as far as I know if I have moved my Desktop and Documents to iCloud they will not be backkedup with time machine at all?
Or is there better way to do this or better rsync sript?