Created
December 3, 2014 18:03
-
-
Save bhouse/4cda6d13bc46a9765291 to your computer and use it in GitHub Desktop.
ztrustee backup script changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bhouse@admin1:~$ diff -u push-warm-spare{,.new} | |
--- push-warm-spare 2014-12-03 18:02:14.894289218 +0000 | |
+++ push-warm-spare.new 2014-12-03 18:01:07.985219963 +0000 | |
@@ -1,4 +1,4 @@ | |
-#!/bin/sh -e | |
+#!/bin/sh -exv | |
date | |
@@ -25,7 +25,7 @@ | |
DESTDIR="$ZTRUSTEE_WARM_SPARE_DIR" | |
fi | |
if [ -z "$DESTDIR" ]; then | |
- DESTDIR="/" | |
+ DESTDIR="" | |
fi | |
# Refuse to clobber thyself | |
if [ "$DEST" = "localhost" ]; then | |
bhouse@admin1:~$ diff -h backup-functions{,.new} | |
8c8 | |
< APACHE_DIRS="/etc/apache2/ /var/lib/ztrustee/ /var/log/apache2/" | |
--- | |
> APACHE_DIRS="/etc/httpd/ /var/lib/ztrustee/ /var/log/apache2/" | |
24c24 | |
< $RSYNC $SRCDIR/$f $DESTPATH/$f | |
--- | |
> $RSYNC $SRCDIR$f $DESTPATH$f | |
32c32 | |
< $RSYNC $SRCDIR/$f $DESTPATH/$f | |
--- | |
> $RSYNC $SRCDIR$f $DESTPATH$f | |
40c40 | |
< $RSYNC $SRCDIR/$f $DESTPATH/$f | |
--- | |
> $RSYNC $SRCDIR$f $DESTPATH$f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment