Documented? It doesn't take arguments. It means delete stuff at the target which is not on the source.
Yes, documented. Some people have been told to RTFM so well [read: flamed to heck] that they look for documentation instinctively before asking questions in a venue like this.
Let me try...
According to what you say, "--delete" will delete any file that is on the target which is not on the source.
Example: When used incrementally (say, once daily)
s3sync -svr --delete /home <bucketName>:/home
Will cause an exact copy of /home to be created. If /home/user1 existed in the source location on day 1. After running this command on day 2 /home/user1 would not appear in the S3 bucket.
Conversely for a restore. If /home/user1 existed locally and did not on the S3, then:
s3sync -svr --delete <bucketName>:/home /home
Would delete /home/user1 locally.
Is this accurate?
Thanks,
Andrew...
[Edit]
disclaimer... I have not tested ANY of this, so don't take my word. Always do your own testing before relying on any advice/documentation.