Create a Shell Script to backup directories and databases
$10-30 USD
Abgeschlossen
Veröffentlicht vor mehr als 8 Jahren
$10-30 USD
Bezahlt bei Lieferung
I need a shell script that can do the following tasks:
1. Backup selected folders from the source to a mounted NTFS directory.
2. Check the destination directory before copying. If the file exist, copy again if the source is newer. If the destination exist, but the file was deleted on source, delete from destination
3. We need to keep the same permissions on the destination folder when the files are copied.
4. We want to keep the same directory structure on the destination as it is on the source. Example:
Source: /home/users
Destination: [login to view URL]:/BackupShare/home/users
5. In the same backup, dump a copy of our MySQL databases (2 of them). These could be sql files or gzip.
After we test the script is performing as expected, we'll setup a cronjob to run it using RSYNC.