SHARE
TWEET

Rsnapshot on FreeBSD 10.1

mat_h Apr 1st, 2015 14 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@colleen:/usr/home/admin] uname -a
  2. FreeBSD colleen.sandbox.local 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
  3. [root@colleen:/usr/home/admin]  du -d 1 -h -A /backup/remote/
  4. 141G    /backup/remote/daily.1
  5. 906M    /backup/remote/daily.0
  6. 90M    /backup/remote/daily.2
  7. 16G    /backup/remote/daily.3
  8. 159G    /backup/remote/
  9. [root@colleen:/usr/home/admin]  /usr/local/bin/rsnapshot -v -c /usr/local/etc/rsnapshot.d/remote.conf sync ; /usr/local/bin/rsnapshot -v -c /usr/local/etc/rsnapshot.d/remote.conf daily
  10. mkdir -m 0755 -p /backup/remote/.sync/severA.company.com/
  11. /usr/local/bin/rsync -a --delete --bwlimit=40000 --numeric-ids --relative \
  12.     --delete-excluded --no-owner --no-group \
  13.     --chmod=Du+rwx,Dgo-rwx,Fu+rw,Fgo-rw --rsync-path="/usr/local/bin/sudo \
  14.     /usr/local/bin/rsync" \
  15.     --exclude-from=/usr/local/etc/rsnapshot.d/excludes.txt \
  16.     --rsh="/usr/bin/ssh -i /home/admin/.ssh/id_dsa" \
  17.     --link-dest=/backup/remote/daily.0/severA.company.com/mailserver/ \
  18.     rsync@192.168.23.178:/var/vmail \
  19.     /backup/remote/.sync/severA.company.com/mailserver/
  20. touch /backup/remote/.sync/
  21. /bin/rm -rf /backup/remote/daily.3/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top