Page 1 of 1

[FEATURE REQUEST] How to store backup using Amazon S3?

Posted: Thu Jun 12, 2014 2:12 pm
by erldcrtz
hello... can anyone please share how to store backup in amazon s3?

thank you

Re: [FEATURE REQUEST] How to store backup using Amazon S3?

Posted: Mon Jun 16, 2014 5:00 am
by HDPixel
You could have a cron job that backups up the latest file at the time when it is run.

I use the http://s3tools.org/s3cmd script on Centos, Debian 6/7.

Code: Select all

# Backups one specific user file
#!/bin/bash
_now=$(date +"%Y-%m-%d")
_file="/home/backup/USER.$_now.tar"
# replace s3.myamazon-bucket with your own bucket
s3cmd put $_file  s3://s3.myamazon-bucket/mybackup/USER/
#or
s3cmd put /home/*.tar s3://s3.myamazon-bucket/mybackup/USER/
or you can synchronize the entire VestaCP back up folder.

Code: Select all

# SYNCH FILES
#!/bin/bash
s3cmd sync  --delete-removed /home/backup/ s3://s3.myamazon-bucket/mybackup/

# Test run and you can also add an exclude file (one file or folder per line)
s3cmd sync --dry-run  --delete-removed --exclude-from /root/excludes.files /home/backup/ s3://s3.myamazon-bucket/mybackup/
Cheers,

HDPixel

Re: [FEATURE REQUEST] How to store backup using Amazon S3?

Posted: Mon Jun 16, 2014 6:08 am
by erldcrtz
thank you... this is a big help for the community

Re: [FEATURE REQUEST] How to store backup using Amazon S3?

Posted: Sun Jun 22, 2014 8:12 pm
by imperio
Hi,
All feature requests and bugs you can add in our official bugtracker
https://bugs.vestacp.com/

Re: [FEATURE REQUEST] How to store backup using Amazon S3?

Posted: Sun May 15, 2016 3:13 pm
by shanjie
Any upload file size limit?