Update Backups

I uploaded a bunch of family pictures to my Dreamhost backup account and just got done removing duplicates. What would be the best way to update everything without deleting the folder and uploading it again? I’m assuming rsync? And what would be the command? The pictures are located at “z:\pictures” and on Dreamhost backups as “pictures”

I’d use this format:
rsync -avze ssh --delete ‘a:\pictures’ 'USER@backup.dreamhost.com:pictures’
a = all
v = verbose
z = compressions
e = shell to use
-delete = mirror, so it deletes destination files that you don’t have locally

For a dry run, use rsync -avzne
The ‘n’ makes the first command just pretend it’s working.


Thanks, I also added -P for partial continuation.