From: Frank Brehm Date: Wed, 19 May 2010 13:25:00 +0000 (+0000) Subject: Kosmetik X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=8dde2142e54e2ceebecdb4140c168aad40f38e15;p=my-stuff%2Fbackup.git Kosmetik --- diff --git a/bin/backup-pre.sh b/bin/backup-pre.sh index 4ab152d..a4a90b4 100755 --- a/bin/backup-pre.sh +++ b/bin/backup-pre.sh @@ -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