seven1m.sdf.org

Compile and use Rsync on SDF.org

written April 2018

Even though there is a tutorial for using rsync on SDF, for some reason I could not get it to work. Rsync doesn't seem to be available to me on the server I'm on. Running which rsync returns "rsync not found." This tutorial will show you how to compile Rsync manually and use it.

Compilation

wget https://download.samba.org/pub/rsync/nightly/rsync-HEAD.tar.gz
tar xzf rsync-HEAD.tar.gz                                
cd rsync-HEAD-*                
./configure
make
mkdir ~/bin
mv rsync ~/bin

Usage

You need to specify where the rsync binary resides when using rsync remotely:

Back up your SDF home directory to your local machine:

rsync -avzk --rsync-path=~/bin/rsync USERNAME@sdf.org:~/ ~/local/path/

The -k option tells rsync to copy symlinks to directories as if they are actual directories. This is useful for copying down the "html" directory.

Update your SDF html directory from a local copy:

rsync -avz --rsync-path=~/bin/rsync ~/local/path/html/ USERNAME@sdf.org:~/html/

Hosting for this site is provided by

The SDF Public Access UNIX System