February 02, 2014, 01:33:19 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / Questions / Re: delete option documented? on: October 25, 2007, 08:34:01 AM
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?


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.
2  General Category / Questions / Re: How do I start where I left off? (restore) on: October 20, 2007, 02:29:54 PM
Ah! never mind... I was running 1.1.2. I updated to 1.1.4 and it seems to be working well now!
3  General Category / Questions / How do I start where I left off? (restore) on: October 20, 2007, 02:24:23 PM
I'm having trouble doing restores. First the backup is made using the following:

s3sync.rb  --verbose  --recursive  /home  <bucket>:sites

This correctly places everything in /home under sites in my bucket, so it's in sites/home/...

I use the following command line to do the restore:

s3sync.rb -vr <bucket>:sites/home/<homeDirToRestore> /home

There are many files in this path, so sometimes the restore breaks due to pipe errors. When I try and restart the restore I get the following error:

/root/bin/s3sync.rb:544:in `unlink': Is a directory - /mnt/md1/var/www/wtmp/web1/ (Errno::EISDIR)
        from /root/bin/s3sync.rb:544:in `updateFrom'
        from /root/bin/s3sync.rb:323:in `main'
        from /root/bin/s3sync.rb:631

If I delete the /home/<homeDirToRestore> I don't get this error, but have a good chance of failing the restore again at some point. The question is, how do I properly restart the restore without having to start over?

Thanks for any advice,
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!