Page 1 of 1

Best way to backup content and DB

Posted: Fri Nov 16, 2018 2:27 pm
by rtarson
I wanted to see if anyone has a good way method of backing up both website contents and database files to aws s3?

Re: Best way to backup content and DB

Posted: Wed Nov 21, 2018 3:06 pm
by isaac
Restic seems to be my best option

Ubuntu:

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