One way fast and lightweight file mirroring
Jump to navigation
Jump to search
rsync -q -avWS --no-compress --progress --delete --timeout 10 -e "ssh -T -o Compression=no -x -p 12345" username@server.remote:/distant/content /local/folder/ 2>&1 | ifne cat <(echo "Subject: sync failed\n ") - | ifne sendmail -s "ohoh" someone@who.cares