Skip to content

Instantly share code, notes, and snippets.

@bhouse
Created December 3, 2014 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhouse/4cda6d13bc46a9765291 to your computer and use it in GitHub Desktop.
Save bhouse/4cda6d13bc46a9765291 to your computer and use it in GitHub Desktop.
ztrustee backup script changes
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