Auto Backup Server Database
Tutorial explaining how to make for your database.
1 - Let's see if the nano is installed on your Linux machine, run on the terminal:
2 - Let's go the way where you want to save the script .sh can be anywhere of your choice, I will use the root directory of my server as an Example:
In the above command the "daniel" represents my Linux user and "canary" the root folder of mine server.
3 - Now let's create the script.sh:
Then enter:
Save with CTRL+X after Y and Enter.
4 - Let's give permission to the script created:
5 - Now we put to run automatically as your choice, run on the Linux terminal the command:
Remember that "/home/daniel/backup-database.sh" is the director of my script so you'll have to change that part!
6 - Enter at the end of all some of the options:
Save with CTRL+X after Y and Enter.
7 - Now just restart your Linux machine.
Credits: Beats.
Last updated