S3Sync.net
February 02, 2014, 01:30:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Sync Deletes Files  (Read 2748 times)
Gainax
Newbie
*
Posts: 2


View Profile
« 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
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!