Mercurial > index.cgi > dotfiles
comparison bin/rs.sh @ 224:06c95aa30a30
Add configs to version control, change path in script to point to them
author | Steve Huston <huston@astro.princeton.edu> |
---|---|
date | Thu, 01 Jul 2021 14:44:33 -0400 |
parents | 2ee6627c0bc4 |
children |
comparison
equal
deleted
inserted
replaced
223:2ee6627c0bc4 | 224:06c95aa30a30 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 RS=/opt/local/bin/rsnapshot | 3 RS=/opt/local/bin/rsnapshot |
4 CONF="/opt/local/etc/rsnapshot.conf" | 4 CONF="/Users/huston/.rsnapshot/rsnapshot.conf" |
5 FLAGS="-V" | 5 FLAGS="-V" |
6 | 6 |
7 usage() { | 7 usage() { |
8 echo " " | 8 echo " " |
9 echo "$0 - run rsnapshot backups" | 9 echo "$0 - run rsnapshot backups" |
24 fi | 24 fi |
25 | 25 |
26 while [ $# -gt 0 ] ; do | 26 while [ $# -gt 0 ] ; do |
27 case "$1" in | 27 case "$1" in |
28 tm) | 28 tm) |
29 CONF="/opt/local/etc/rsnapshot-tm.conf" | 29 CONF="/Users/huston/.rsnapshot/rsnapshot-tm.conf" |
30 shift | 30 shift |
31 ;; | 31 ;; |
32 monthly|m) | 32 monthly|m) |
33 do_monthly=1 | 33 do_monthly=1 |
34 shift | 34 shift |