--- a/backup2Archiv2 Fri May 06 11:13:14 2016 +0200
+++ b/backup2Archiv2 Fri May 06 12:43:42 2016 +0200
@@ -12,6 +12,7 @@
BACKUPDIR=/home/samba/Archiv2/_kundenarchiv
LOGFILE=/var/log/backup2Archiv-$(date -I)
LOGTAG=b2archiv2
+ARCHIVEND='tar.gz'
USER=
GROUP=
@@ -46,7 +47,7 @@
PARENTDIR="${PATH2BACKUP%/*}"
NAME=$(basename "$PATH2BACKUP")
- ARCHIV="$BACKUPDIR/$NAME.tar.xz"
+ ARCHIV="$BACKUPDIR/$NAME.$ARCHIVEND"
ACLFILE="$PATH2BACKUP/.$NAME.acls"
ATTRFILE="$PATH2BACKUP/.$NAME.attr"
@@ -87,7 +88,7 @@
else
logger -t "$LOGTAG" "Backup $0 $PATH2BACKUP done to $ARCHIV"
logger -t "$LOGTAG" "changing permissions of $ARCHIV"
- chown "$USER":"$GROUPi" "$ARCHIV"
+ chown "$USER":"$GROUP" "$ARCHIV"
#wirft noch nen Fehler :(
#logger -t "$LOGTAG" "Removing $PATH2BACKUP"