rsync - Fast incremental file transfer ChangeLog

HOWTO


# Rsync 3.2.3
# ===========
# Slackware 14.0: rsync 3.0.9
# Slackware 14.1: rsync 3.1.0
# Slackware 14.2: rsync 3.1.2
# Check 'patches' for updates

# Prerequisites:
# rsh/remsh or ssh (you need one or the other)
# yodl2man (to generate man pages; will use existing ones if not available)
# Python
# Perl
# zlib or lz4 >= 1.4 (optional)
# OpenSSL or GnuTLS
# xxHash (optional)
# Zstandard (zstd; optional)
# LZ4 (optional)

# Get the source
cd
test -f installed/rsync-3.2.3.tar.gz && mv installed/rsync-3.2.3.tar.gz .
test ! -f rsync-3.2.3.tar.gz &&
wget https://download.samba.org/pub/rsync/src/rsync-3.2.3.tar.gz

# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "becc3c504ceea499f4167a260040ccf4d9f2ef9499ad5683c179a697146ce5\
0e  rsync-3.2.3.tar.gz" | sha256sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 4B96A8C5 > /dev/null 2>&1 || gpg --recv-keys 4B96A8C5 ) &&
wget -nc https://download.samba.org/pub/rsync/rsync-3.2.3.tar.gz.asc &&
  gpg --verify rsync-3.2.3.tar.gz.asc && rm rsync-3.2.3.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.2.3.tar.gz
cd rsync-3.2.3
test $UID = 0 && chown -R root:root .

# Read ./README.md, ./INSTALL.md, and if upgrading ./NEWS.md

# Install cmarkgfm or commonmark with Python 3.x's pip3 to generate
# man pages
# You may want to upgrade pip itself (as root) first:
# su -c "python3 -m pip install --upgrade pip"
pip3 install --user commonmark

# Configure the build
# Obviously, if you will be using it with IPv6, leave off --disable-ipv6
./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

# 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.2.3.tar.gz installed/


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

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2021-08-02 6:18pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]