rsync_encrypted_backup

Encrypted backups based on gocryptfs and rsync
git clone https://src.jayvii.de/pub/rsync_encrypted_backup.git
Log | Exports | Files | Refs | README

README (1327B)


      1 Encrypted Backup via rsync and gocryptfs
      2 ========================================
      3 
      4 Please send patches or remarks to <jayvii[AT]posteo[DOT]de>
      5 
      6 Atomic and encrypted backups made easy with a simple bash script.
      7 
      8 Detailed description can be found here:
      9 https://www.jayvii.de/posts/backups/
     10 
     11 Uses well-known tools, following the UNIX-philosophy:
     12 - rsnc https://rsync.samba.org/
     13 - gocryptfs https://nuetzlich.net/gocryptfs/
     14 
     15 Preparation
     16 ===========
     17 
     18 Initilize gocryptfs with the Backup-source directory. If you want to backup
     19 (subdirectories of) your home-folder, do the following:
     20 
     21         gocryptfs \
     22             --init \ # initilise the volume
     23             --reverse \ # use "reverse mode"
     24             --plaintextnames \ # do not obfuscate names of files and directories
     25             "$HOME" # target directory. Here: our home-folder
     26 
     27 This will create a .gocryptfs.reverse.conf file with the encryption meta data.
     28 Do not lose this file or your encryption password.
     29 
     30 Usage
     31 =====
     32 
     33 To backup your home directory to a remote server via SSH, use following syntax:
     34 
     35         ./backup.sh "$HOME" "user[AT]example[DOT]com"
     36 
     37 Backups are stored on the remote end in the folder named after the hostname of
     38 your source machine and the current month. If you do monthly updates, this leads
     39 to 12 backup versions before the first backup is overwritten.