Upload backup files to other server with crontab or sh

General support questions
Post Reply
i7solutions
Posts: 2
Joined: 2014/12/13 09:03:32

Upload backup files to other server with crontab or sh

Post by i7solutions » 2019/01/28 09:01:26

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.

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

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

Post by tunk » 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

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

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

Post by Whoever » 2019/01/29 03:12:40

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.

Post Reply