Upload backup files to other server with crontab or sh
-
- Posts: 2
- Joined: 2014/12/13 09:03:32
Upload backup files to other server with crontab or sh
I have created a crontab for mysql daily backup at night. However, the backup is still on the local server. I want all the files from that server to be automatically uploaded to my other server or gdrive. Can anyone help me with the script I should write? The script should automatically upload all the files from the server after backup to another server.
Re: Upload backup files to other server with crontab or sh
Here's what I do:
- create a NFS read-only export
- mount it on your other server
- use rsync to copy the files
- create a NFS read-only export
- mount it on your other server
- use rsync to copy the files