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
: 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.
Troubleshooting s3sync
Amazon S3 is a superb, cost-effective, scalable storage solution. It's been around for a few years. s3sync.rb is a well-maintained ruby script to backup your important files.
[07:02 AM][root@local ~/.s3conf]# ./s3cmd.rb
/usr/bin/env: ruby: No such file or directory
You don't have ruby installed. Easy.
sudo apt-get install rubyor
yum install ruby
[07:02 AM][root@local ~/.s3conf]# ./s3cmd.rb
./S3.rb:14:in `require': no such file to load -- openssl (LoadError)
from ./S3.rb:14
from ./s3try.rb:26:in `require'
from ./s3try.rb:26
from ./s3cmd.rb:16:in `require'
from ./s3cmd.rb:16
Missing openssl libraries.
sudo apt-get install libopenssl-ruby





