Tony Narlock Living life in the cloud

5Mar/101

Use s3sync.rb + screen to move your files to the cloud

Move to your s3sync dir.

screen ./s3sync.rb -r /home/tony/backups/ backup:backups -v

screen means you will be able to run the command as a screen process. ctrl-d to detach screen, screen -r to resume.

-r means recursive copy.

/home/tony/backups is where cron stores you backupps. You can replace this with whatever dir you want to sync.

backups is the name of the bucket. Do ./s3cmd createbucket to create your bucket

: is a seperator

backups is a prefix for the bucket.

-v means verbose, so you can see the progress in your screen.

If screen quits too fast, the command may not have worked.

If you detached and screen doesn't resume, your job may done, check your s3 to see if files transferred.

Also, make sure you have your s3config.yml file ready, you need to copy your key from your Amazon AWS account.