11 July 2016
This script will create a portable (user-installable) copy of Ubuntu's
rdiff-backup package, good for shared hosting like DreamHost.
Do the following on a local Linux machine or on the remote machine where you eventually want to install
mk-portable-rdiff-backup.shto a temp folder such as
- Go to http://packages.ubuntu.com and download the
librsync1for the Ubuntu distribution running on your target machine. (In the case of DreamHost, that would be the
amd64build of Ubuntu 12.04 "precise", at the time of this writing.)
- Copy the two
.debfiles you downloaded into your working folder (
You will get
~/bin (create it if necessary) on the target machine and extract the contents of the
.tar.gz file created in the previous step.
Using the Portable rdiff-backup in Server Mode
If your target system is a shared web host like DreamHost, you probably don't have
~/bin in the
$PATH environment variable for "non-interactive" shells. To use your remote
rdiff-backup in "server" mode, you must specify the "remote-schema" command line option so that the client knows where to run the server script from.
For example, if you want to use
rdiff-backup to login to
FOO and backup the
~/BAR.com folder, use the following command line on the client:
rdiff-backup --remote-schema 'ssh -C %s bin/rdiff-backup --server' \ FOO@HOST::/home/FOO/BAR.com BAR.com
(Don't forget to install your client's SSH key on the server, and other details needed to make this work from an automated script, if needed.)