Public | Automated Build

Last pushed: 2 years ago
Short Description
Simple Docker image with ssh and rsync.
Full Description

trsouz/rsync

trsouz/rsync is a Docker image with ssh and rsync.

Usage

docker pull trsouz/rsync

Basic rsync

docker run -ti -v /my-backup:/backup trsouz/rsync -avz /backup username@myserver.com:/destination-backup

You can set the environment variable 'HOST' to automatically add the RSA host key in known_hosts.
(This functionality is provided by trsouz/ssh)

docker run -ti -e HOST=myserver.com -v $HOME/.ssh:/my-ssh trsouz/rsync -avz -e "ssh -i /my-ssh/ssh-private-key.pem" /backup username@myserver.com:/destination-backup
Docker Pull Command
Owner
trsouz
Source Repository

Comments (1)
ryanboder
a year ago

Useful when I need to rsync stuff to Windows. The docker-toolbox mingw shell doesn't include rsync and this image fills the void.