amazon-s3backups3cmd

Backing up to S3: symlinks


I'm trying to figure out right now how to backup some data to S3.

We have a local backup system implemented using rsnapshot and that works perfectly. We're trying to use s3cmd with the --sync option to mimic rsync to transfer the files.

The problem we're having is that symlinks aren't created as symlinks, it seems to be resolving them to the physical file and uploading that instead. Does anyone have any suggestions as to why this would happen?

Am I missing something obvious? Or is it that S3 just isn't suited to this sort of operation? I could setup an EC2 instance and attach some EBS, but it'd be preferable to use S3.


Solution

  • There is no symlinks available on S3 but what you can use is google's solution which creates a based file system using S3 (FUSE) . More information here :

    https://code.google.com/p/s3fs/wiki/FuseOverAmazon

    and here:

    http://tjstein.com/articles/mounting-s3-buckets-using-fuse/

    I hope it helps