aboutsummaryrefslogtreecommitdiff
path: root/handlers/tar.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-01-17 23:54:09 +1300
committerMicah Anderson <micah@riseup.net>2010-01-17 23:54:09 +1300
commitfe3620c6529cc449cd152ed58667e39d4a80257e (patch)
treeec83be42237855979a31f38cdce51f45cdbd7312 /handlers/tar.in
parent18f28c2cb00286cc0ff790ef6b6914f3f22ec4ac (diff)
parent46eccf2fd0c894790405b2e3aae8dfb99f5a5d98 (diff)
downloadbackupninja-fe3620c6529cc449cd152ed58667e39d4a80257e.tar.gz
backupninja-fe3620c6529cc449cd152ed58667e39d4a80257e.tar.bz2
Merge branch 'master' into debian
Conflicts: AUTHORS ChangeLog handlers/maildir.in handlers/mysql.in handlers/rsync.in handlers/sys.helper.in handlers/sys.in src/backupninja.in
Diffstat (limited to 'handlers/tar.in')
-rw-r--r--handlers/tar.in23
1 files changed, 12 insertions, 11 deletions
diff --git a/handlers/tar.in b/handlers/tar.in
index 7f0d147..b4f8c58 100644
--- a/handlers/tar.in
+++ b/handlers/tar.in
@@ -1,17 +1,18 @@
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
+# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
#
# tar handler script for backupninja
-getconf backupname `hostname --fqdn`
-getconf backupdir /var/backups/`hostname --fqdn`
-getconf compress bzip
-getconf includes "/etc /home /usr/local"
-getconf excludes "/tmp /proc /dev /sys /net /misc /media /srv /selinux"
+getconf backupname `hostname --fqdn`
+getconf backupdir /var/backups/`hostname --fqdn`
+getconf compress bzip
+getconf includes "/etc /home /usr/local"
+getconf excludes "/tmp /proc /dev /sys /net /misc /media /srv /selinux"
-getconf TAR `which tar`
-getconf EXTENSION tar
-getconf DATE `which date`
-getconf DATEFORMAT "%Y.%m.%d-%H%M"
+getconf TAR `which tar`
+getconf EXTENSION tar
+getconf DATE `which date`
+getconf DATEFORMAT "%Y.%m.%d-%H%M"
# See if vservers are configured
if [ "$vservers" = "yes" ]
@@ -65,7 +66,7 @@ done
debug "Running backup: " $TAR -c -p -v $compress_option $exclude_options \
-f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \
- $includes
+ $includes
$TAR -c -p -v $compress_option $exclude_options \
-f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \
@@ -73,7 +74,7 @@ $TAR -c -p -v $compress_option $exclude_options \
> "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.list \
2> "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.err
-[ $? -ne 0 ] && fatal "Tar backup failed"
+[ $? -ne 0 ] && fatal "Tar backup failed"