Quantcast
Channel: Automatic and secure file transfer over two servers - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 4

Answer by Gewure for Automatic and secure file transfer over two servers

$
0
0

I suggest a cronjob using scp to copy files.

Write a shellscript backupToServer.sh, which tars your files-to-backup and then puts them on the server with scp /path/to/backup/tar user@server:/path/where/backup/is/stored. make usage of ssh-keys.

You can use date or similar tools to name your backup correctly.

With crontab -e you add a new cronjob. Take a look at the time settings of crontab, they are rather trivial but look weird on first sight.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>