rsync - Fast incremental file transfer ChangeLog

HOWTO


# Rsync 3.1.2
# ===========
# Slackware 11.0's 'rsync' package includes version 2.6.8, 12.0's includes
# 2.6.9, and 12.1's includes 3.0.2
docs/slackware/packages/12.2.txt:PACKAGE NAME:  rsync-3.0.4-i486-1.tgz
docs/slackware/packages/13.0.txt:PACKAGE NAME:  rsync-3.0.6-i486-1.txz
docs/slackware/packages/13.1.txt:PACKAGE NAME:  rsync-3.0.7-i486-1.txz
docs/slackware/packages/13.37.txt:PACKAGE NAME:  rsync-3.0.8-i486-1.txz
docs/slackware/packages/14.0.txt:PACKAGE NAME:  rsync-3.0.9-i486-1.txz
docs/slackware/packages/14.1.txt:PACKAGE NAME:  rsync-3.1.0-i486-1.txz
docs/slackware/packages/14.2.txt:PACKAGE NAME:  rsync-3.1.2-i586-1.txz


# Prerequisites:
# rsh or ssh (you need one or the other)
# yodl2man (to generate man pages; will use existing ones if not available)
# stunnel (optional; for the rsync-ssl helper script)

# Get it
cd
test -f installed/rsync-3.1.2.tar.gz &&
mv installed/rsync-3.1.2.tar.gz .
test ! -f rsync-3.1.2.tar.gz &&
wget http://rsync.samba.org/ftp/rsync/rsync-3.1.2.tar.gz

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "0d4c7fb7fe3fc80eeff922a7c1d81df11dbb8a1a  rsync-3.1.2.tar.gz" | sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 4B96A8C5 > /dev/null 2>&1 || gpg --recv-keys 4B96A8C5 ) &&
wget -nc http://rsync.samba.org/ftp/rsync/rsync-3.1.2.tar.gz.asc &&
  gpg --verify rsync-3.1.2.tar.gz.asc && rm rsync-3.1.2.tar.gz.asc

# Extract the source
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "rsync-*" -exec rm -r {} \;
tar xzvf ~/rsync-3.1.2.tar.gz
cd rsync-3.1.2
test $UID = 0 && chown -R root:root .

# Configure the build
./configure --prefix=/usr --mandir=/usr/man --disable-ipv6

# Build it
make

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg rsync

# Clean up old versions' leftover files
for pfx in /usr /usr/local;
do
  rm -f $pfx/bin/rsync    $pfx/man/man1/rsync.1    $pfx/man/man5/rsyncd.conf.5    $pfx/share/man/man1/rsync.1    $pfx/share/man/man5/rsyncd.conf.5
done

# Install it
make install

# If you're running it as a daemon, restart it:
killall rsync
sleep 2
killall -9 rsync
/usr/bin/rsync --daemon

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/rsync-*.tar.*
mv rsync-3.1.2.tar.gz installed/


# If you ever want to uninstall rsync, this should do it:
su
rm -f /usr/bin/rsync /usr/man/man1/rsync.1 /usr/man/man5/rsyncd.conf.5 /usr/share/man/man1/rsync.1 /usr/share/man/man5/rsyncd.conf.5
exit
find ~/src -maxdepth 1 -type d -name "rsync-*" -exec rm -r {} \;
rm -f ~/installed/rsync-*.tar.*

List of HOWTOs

Last updated: 2020-04-29 10:24pm EDT(-0400)
Copyright © 2001-2020 Jason Englander. All Rights reserved.
[HTML5]