Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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