Page 1 of 1

Upload backup files to other server with crontab or sh

Posted: 2019/01/28 09:01:26
by i7solutions
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

Posted: 2019/01/28 17:57:46
by tunk
Here's what I do:
- create a NFS read-only export
- mount it on your other server
- use rsync to copy the files

Re: Upload backup files to other server with crontab or sh

Posted: 2019/01/29 03:12:40
by Whoever
tunk wrote:
2019/01/28 17:57:46
Here's what I do:
- create a NFS read-only export
- mount it on your other server
- use rsync to copy the files
Use "rsync -e ssh ...", then no need to involve NFS.