SHARE
TWEET

Rsnapshot on FreeBSD 10.0

mat_h Apr 1st, 2015 11 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.0-RELEASE-p17 FreeBSD 10.0-RELEASE-p17 #0: Tue Jan 27 13:45:18 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
  3. [root@colleen:/usr/home/admin] pkg version -v | grep rs
  4. rsnapshot-1.3.1_2                  =   up-to-date with index
  5. rsync-3.1.1_3                      =   up-to-date with index
  6. [root@colleen:/usr/home/admin] du -d 1 -h -A /backup/remote/
  7. 150G    /backup/remote/daily.1
  8. 8.2G    /backup/remote/daily.0
  9. 91M    /backup/remote/daily.2
  10. 91M    /backup/remote/daily.3
  11. 158G    /backup/remote/
  12. [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
  13. mkdir -m 0755 -p /backup/remote/.sync/severA.company.com/
  14. /usr/local/bin/rsync -a --delete --bwlimit=40000 --numeric-ids --relative \
  15.     --delete-excluded --no-owner --no-group \
  16.     --chmod=Du+rwx,Dgo-rwx,Fu+rw,Fgo-rw --rsync-path="/usr/local/bin/sudo \
  17.     /usr/local/bin/rsync" \
  18.     --exclude-from=/usr/local/etc/rsnapshot.d/excludes.txt \
  19.     --rsh="/usr/bin/ssh -i /home/admin/.ssh/id_dsa" \
  20.     --link-dest=/backup/remote/daily.0/severA.company.com/mailserver/ \
  21.     rsync@192.168.23.178:/var/vmail \
  22.     /backup/remote/.sync/severA.company.com/mailserver/
  23. touch /backup/remote/.sync/
  24. /bin/rm -rf /backup/remote/daily.3/
  25. mv /backup/remote/daily.2/ /backup/remote/daily.3/
  26. mv /backup/remote/daily.1/ /backup/remote/daily.2/
  27. mv /backup/remote/daily.0/ /backup/remote/daily.1/
  28. mv /backup/remote/.sync/ /backup/remote/daily.0/
  29. [root@colleen:/usr/home/admin] du -d 1 -h -A /backup/remote/                
  30. 141G    /backup/remote/daily.1
  31. 906M    /backup/remote/daily.0
  32. 90M    /backup/remote/daily.2
  33. 16G    /backup/remote/daily.3
  34. 159G    /backup/remote/
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