Automated remote backups in Linux

A lot of data is stored on publicly available drives/shares. These consist a definite value and need to be secured to pertain their value in case of service interruption or the like. So a reliably tool is required, which automates this daily task without user invention. What are recommendations in this area?
1 answer

Use rsync and duplicity together with ssh-keys for remote secure backup

On Ubuntu:

First:

  • sudo apt-get install rsync
  • sudo apt-get install duplicity

    Then:

  • Create your ssh-key key pair (public/private).
  • Copy the public key to the remote server and add it to the authorized_keys section there
  • rsync -avz * myuser@myremote.server.com:/backup/dir/
  • duplicity --verbosity info --allow-source-mismatch /data/to/backup/securly/also/with/encrypted/transfer/ rsync://myuser@myremote.server.com//backup/dir/for/encrypted/backups/

    Finally:
    To automate this with periodic execution, use "crontab"-entries, and/or add logic process functionality by using shell scripts.

  • Taggings: