RCB (Rsync-Crypto-Backup) is a set of scripts in Bash that:

  • Create local backup with rsnapshot
  • Encrypt local backup with rsyncrypto
  • Sync encrypted backup to the remote server with rsync
  • Restore the backup and
  • Compare the restored data with the origin

Rsyncrypto ensures that doing rsync to synchronize the encrypted files to another machine will have only a small impact on rsync’s efficiency. Whole RCB project is approximately 500 lines long.

Installation and configuration was tested with Ansible role with FreeBSD and Ubuntu.