Shell script to mirror backups to another server in pull mode using rsync

Posted on in Categories Automation & Management, Backup last updated April 28, 2017

A shell script mirror remote server named server1.cyberciti.biz and /backups directory to another server. The script use rsync command and also make sure a special directory mounted in local server. You must setup ssh keys (see “How To Set Up SSH Keys” for more info).

2 comment

  1. Hello
    Thanks for this script, I’ll need it soon :)
    I suggest using ‘mountpoint -q’ to check if the destination directory is mounted, it’s its goal :)

Leave a Comment