Importance of Backup
Backup of all relevant data and files on time is the best quality of good sysadmin.
In this article, I have provided you a S3 backup script which helps you to backup your valuable data time to time and stored it on AWS S3 Cloud.
If your server crashed, we have a copy of the backup file on the S3 cloud which we used as an option to restoring a website.
Also, I have explained you each line of code mentioned in this script which gives you a deeper understanding of working with the script.
Just follow below step by step process to configure backup script on your server.
step 1: Install s3cmd command
You need to install s3cmd command before setting up the backup script. This command helps in the configuration of S3 on the server.