From ee9810f7f4f1046ff7067f0c1d03f6c3399a7120 Mon Sep 17 00:00:00 2001 From: Sebastian Thorarensen <sebth@lysator.liu.se> Date: Wed, 22 Jan 2014 01:05:44 +0000 Subject: [PATCH] Updated fetch-backup-work for Lysator. * bacon is now used instead of stalhein for fetching auto_home * ftp mirror exclude list is now up to date * ftp-home (doesn't exist) is now skipped --- fetch-backup-work | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/fetch-backup-work b/fetch-backup-work index 68a5a9a..3c2651e 100755 --- a/fetch-backup-work +++ b/fetch-backup-work @@ -27,7 +27,7 @@ ssh uhumhummy ls -1 /lysator/lyswww/users/roxen_only \ | awk '{print "roxen", $1, "uhumhummy /lysator/lyswww/users/roxen_only/" $1}'\ >> $NT -ssh stalhein.lysator.liu.se ypcat -k auto_home \ +ssh bacon.lysator.liu.se ypcat -k auto_home \ | sort \ | grep -v DELETE \ | grep -v membership_expired \ @@ -85,16 +85,18 @@ ssh ftp 'bash -c "cd /export/ftp/pub && ls -1 | while read d ; do [ -d "\$d" ] & $1 == "debian" { next } $1 == "ubuntu" { next } $1 == "CentOS" { next } + $1 == "centos" { next } $1 == "debian-cd" { next } + $1 == "debian-backports" { next } + $1 == "debian-security" { next } $1 == "ubuntu-dvd" { next } $1 == "ubuntu-releases" { next } $1 == "archlinux" { next } { print "ftp-pub", $1, "ftp", "/export/ftp/pub/" $1 }' \ | sort >> $NT -ssh ftp 'bash -c "cd /export/ftp/home && ls -1 | while read d ; do [ -d "\$d" ] && [ ! -L "\$d" ] && echo "\$d" ; done"' \ -| awk '{ print "ftp-home", $1, "ftp", "/export/ftp/home/" $1 }' \ -| sort >> $NT - +#ssh ftp 'bash -c "cd /export/ftp/home && ls -1 | while read d ; do [ -d "\$d" ] && [ ! -L "\$d" ] && echo "\$d" ; done"' \ +#| awk '{ print "ftp-home", $1, "ftp", "/export/ftp/home/" $1 }' \ +#| sort >> $NT echo medreg sqldump medreg /var/lib/mysql-dump >> $NT -- GitLab