How Do I Create a Backup Script in Linux?
Contents How Do I Make a Backup Script in Linux? for Your Reference, the Operation of the Script Is as Follows: Backup Database Using Mysqladmin. Compress...
Contents
How do I make a backup script in Linux?
For your reference, the operation of the script is as follows:
- Backup database using mysqladmin.
- Compress database backup.
- Send backup to S3.
- Loop all the source folders.
- Compress the folder.
- Send backup to S3.
- Delete all files older than 7 days old.
1 нояб. 2016 г.
How do I create a backup directory in Linux?
In order to copy a directory on Linux, you have to execute the “cp” command with the “-R” option for recursive and specify the source and destination directories to be copied. As an example, let’s say that you want to copy the “/etc” directory into a backup folder named “/etc_backup”.