Upload Backups to Amazon S3
Upload Backups to Amazon S3
Prerequisites
- Email Account
Please create an email account first in order to get emails for both unsuccessful and successful backups.
Create S3 bucket and set up access
Make a new S3 bucket first.
To keep your data private, turn on "Ban all public access" in the bucket settings. Enable encryption, versioning, or object locks as needed (please refer to the guidelines provided by Amazon).
The second is Open Identity and Access Management (IAM).
Add a new policy authorizing the actions "ListBucket" and "PutObject" for the Service "S3".
Create a new user so that programs can access it.
affix the newly formed policy to the user.
Make a copy of the user's secret and access key.
Look into lifecycle management to automatically destroy outdated backups or transfer them to a less expensive storage class.
Set up ERPNext
- Go to S3 Backup Settings.
- "Enable Automatic Backup" must be checked.
- Copy and paste the AWS access key and secret.
- Create an email address to be notified at in the event that a backup fails. Enable "Send Email for Successful Backup" if you also want an email sent when a backup is successful.
- Enter the name of the bucket you made in step 1 here.
- How frequently you want to take and upload backups is up to you. This can happen every day or once a month. Set the frequency to "None" if all manual backups are what you wish to do.