]> Frank Brehm's Git Trees - my-stuff/backup.git/commitdiff
Kosmetik
authorFrank Brehm <frank@brehm-online.com>
Wed, 19 May 2010 13:25:00 +0000 (13:25 +0000)
committerFrank Brehm <frank@brehm-online.com>
Wed, 19 May 2010 13:25:00 +0000 (13:25 +0000)
bin/backup-pre.sh

index 4ab152d191e63693926c63118cb8c1d0dab5cf26..a4a90b40e33df006eb4531bdd11b9d443c2c9b42 100755 (executable)
@@ -33,16 +33,16 @@ if [ ! -d "${VHOSTS_DIR}" ] ; then
     exit 7
 fi
 
-#for vdir in "${VHOSTS_DIR}"/* ; do
-#    if [ -d "${vdir}" ] ; then
-#        d=`basename "${vdir}"`
-#        if [ "${d}" == "fotoalbum" ] ; then
-#            do_backup_fs "${vdir}" www."${d}" "${DATUM}"
-#        else
-#            do_backup_fs "${vdir}" www."${d}" "${DATUM}" 1
-#        fi
-#    fi
-#done
+for vdir in "${VHOSTS_DIR}"/* ; do
+    if [ -d "${vdir}" ] ; then
+        d=`basename "${vdir}"`
+        if [ "${d}" == "fotoalbum" ] ; then
+            do_backup_fs "${vdir}" www."${d}" "${DATUM}"
+        else
+            do_backup_fs "${vdir}" www."${d}" "${DATUM}" 1
+        fi
+    fi
+done
 
 do_backup_fs "/etc"                "etc"         "${DATUM}" 1
 do_backup_fs "/var/bind"           "bind"        "${DATUM}" 1