Title: Sync Deletes Files Post by: Gainax on April 23, 2008, 05:56:24 AM Hi
We currently use S3sync to upload a folder to amazon's S3 service. The only problem we have, is that if a file in the folder we are syncing has been deleted, it removes it from the S3 aswell. I'm using the following code in upload.sh Code: ruby s3sync.rb -r -s -v -d --exclude="cache$|captchas$" --delete /home/share/ bolser:/share > /var/log/s3sync/backup.err > /var/log/s3sync/backup.log Does the Code: --delete part mean, to delete files in S3 that aren't in the the folder /home/share?I want to keep all the files that have ever been synced to remain in S3, regardless of them being deleted in /home/share Thanks Title: Re: Sync Deletes Files Post by: ferrix on April 24, 2008, 12:53:57 AM Yes with "--delete" you are instructing it to do the thing that you don't want. There is also no need to use -d unless you are debugging.
|