Skip to content

Instantly share code, notes, and snippets.

@casperbiering
Created January 18, 2017 19:41
Show Gist options
  • Save casperbiering/5f7b0337fced8b54cde69d70abad2f00 to your computer and use it in GitHub Desktop.
Save casperbiering/5f7b0337fced8b54cde69d70abad2f00 to your computer and use it in GitHub Desktop.
rrsync on debian
apt-get install rsync
nano /root/.ssh/authorized_keys
prefix key with
command="rrsync -ro ~/rsyncbackup/",no-agent-forwarding,no-port-forwarding,no-pty,no-user-rc,no-X11-forwarding
mkdir /root/rsyncbackup
cd /root/rsyncbackup
ln -s /backup
gunzip /usr/share/doc/rsync/scripts/rrsync.gz -c > /usr/local/bin/rrsync
chmod +x /usr/local/bin/rrsync
chown root:root /usr/local/bin/rrsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment