Best way to backup content and DB
Best way to backup content and DB
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
Restic seems to be my best option
Ubuntu:
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