[FEATURE REQUEST] How to store backup using Amazon S3?
[FEATURE REQUEST] How to store backup using Amazon S3?
hello... can anyone please share how to store backup in amazon s3?
thank you
thank you
Re: [FEATURE REQUEST] How to store backup using Amazon S3?
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.
or you can synchronize the entire VestaCP back up folder.
Cheers,
HDPixel
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/
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/
HDPixel
Re: [FEATURE REQUEST] How to store backup using Amazon S3?
thank you... this is a big help for the community
Re: [FEATURE REQUEST] How to store backup using Amazon S3?
Any upload file size limit?