Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

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

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

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

Post by erldcrtz » Thu Jun 12, 2014 2:12 pm

hello... can anyone please share how to store backup in amazon s3?

thank you
Top

HDPixel
Posts: 5
Joined: Mon Feb 17, 2014 5:14 pm

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

Post by HDPixel » Mon Jun 16, 2014 5:00 am

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
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

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

Post by erldcrtz » Mon Jun 16, 2014 6:08 am

thank you... this is a big help for the community
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

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

Post by imperio » Sun Jun 22, 2014 8:12 pm

Hi,
All feature requests and bugs you can add in our official bugtracker
https://bugs.vestacp.com/
Top

shanjie
Posts: 37
Joined: Thu Jan 14, 2016 12:02 pm

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

Post by shanjie » Sun May 15, 2016 3:13 pm

Any upload file size limit?
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password