Sign inSign up

aamservices/rdiff-backup

By aamservices

Updated about 7 years ago

Image
0

779

aamservices/rdiff-backup repository overview

docker-ridff-backup

This simple container can be used to backup your server to a remote server that must have rdiff-backup installed which is accessed via SSH

Docker run

docker run --rm -v /path/to/id.rsa/.ssh/:/root/.ssh/ -v /path/to/backup:/rdiff-backup aamservices/rdiff-backup rdiff-backup --remove-older-than 1M /rdiff-backup [email protected]::/backup/destination/folder
      

Docker Composer (run manually or on a schedule ie via portainer)

version: '2'
services:
  mysql:
    image: aamservices/rdiff-backup
    command: ["rdiff-backup", "--remove-older-than", "1M", "/rdiff-backup", "[email protected]::/backup/destination/folder"]
    volumes:
      - /path/to/id.rsa/.ssh/:/root/.ssh/
      - /path/to/backup:/rdiff-backup
      

Notes

You need to make sure that you have added id.rsa.pub to your destination server with copy-ssh-id or manually, you then just need to map the volume /path/to/id.rsa/.ssh/ to that id.rsa location, otherwise the ssh connection will always fail

Tag summary

Content type

Image

Digest

Size

52.3 MB

Last updated

about 7 years ago

docker pull aamservices/rdiff-backup