S3Sync.net

General Category => Questions => Topic started by: agbert on October 20, 2007, 02:24:23 PM



Title: How do I start where I left off? (restore)
Post by: agbert on October 20, 2007, 02:24:23 PM
I'm having trouble doing restores. First the backup is made using the following:

Code:
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:

Code:
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:

Code:
/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,
Andrew...


Title: Re: How do I start where I left off? (restore)
Post by: agbert 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!