Skip to content
Snippets Groups Projects
Commit ee9810f7 authored by Sebastian Thorarensen's avatar Sebastian Thorarensen Committed by Per Cederqvist
Browse files

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
parent e6ea508b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment