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

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

A shell script mirror remote server named 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).

Share this on:

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 :)

    Have a question? Post it on our forum!