Best way to backup content and DB
Posted: Fri Nov 16, 2018 2:27 pm
I wanted to see if anyone has a good way method of backing up both website contents and database files to aws s3?
Community Forum
https://forum.vestacp.com/
Code: Select all
apt install restic
export AWS_ACCESS_KEY_ID="########"
export AWS_SECRET_ACCESS_KEY="########"
restic -r s3:s3.amazonaws.com/BUCKET init
restic -r s3:s3.amazonaws.com/BUCKET backup /home --exclude /home/backup
restic -r s3:s3.amazonaws.com/BUCKET snapshots