S3Sync.net
February 02, 2014, 01:33:22 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: Does s3sync actually sync? on: June 19, 2008, 06:18:56 AM
I was looking for a backup software to S3...

Is this sync still a problem here?

I've had success using this format:

Code:
./s3sync.rb --delete --verbose "/mnt/photos/public/" bofgallery:

Mind your slashes!
2  General Category / Questions / Re: Does s3sync actually sync? on: March 30, 2008, 11:54:09 AM
Ah... I think I've found the issue...

It seems thats if I include an S3 prefix, e.g.

$ ruby s3sync/s3sync.rb MY_BACKUP_ROOT/ bucketname:test -v

then every file gets uploaded every time. On the other hand, if I remove the prefix, e.g.

$ ruby s3sync/s3sync.rb MY_BACKUP_ROOT/ bucketname: -v

then only the missing files get uploaded.

Thanks!

That's not enough. You also have to make sure your local directory (MY_BACKUP_ROOT) does not end in a slash.

Cancel that, still broken. This needs to get fixed.

I'm uploading using this command:

Code:
./s3sync.rb --delete --public-read --cache-control="public, max-age=315360000" --verbose "/mnt/photos/public" bofgallery:

Setup:
  • /mnt/photos/public contains a folder called "data", which contains hardlinks to image files
  • Here is a representative element of the bucket's contents.

Results from testing (with files already synced):
  • If I use /mnt/photos/public/ and bofgallery:, the files are dropped directly into the bucket with no "data/" prefix -- a duplication, of course.
  • If I use /mnt/photos/public and bofgallery:, s3sync creates a node called "public" in the bucket, and stops.
  • If I use /mnt/photos/public/data and bofgallery:, nothing seems to happen.
  • And if I use /mnt/photos/public/data/ and bofgallery:data/, everything gets uploaded over again.

I'm freakin' out here!

ETA: I'm creating a new bucket and avoiding subdirectories. That's the only thing that seems to work. So, the new script uses /mnt/photos/public/ and bofgallerydata:.
3  General Category / Questions / Re: Does s3sync actually sync? on: March 30, 2008, 11:46:15 AM
Even with babadi's tip, it doesn't always work.

I need to synchronize a few MiB every once in a while from a directory containing approx. 4000 items, all of which are immutable. (They are named after their MD5 sums.) It's unreasonable to have s3sync push the whole directory up to Amazon just for that. Is there any way to tell s3sync to ignore file mod dates when comparing?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!