Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lysator
LYSrdiff
Commits
38668cd8
Commit
38668cd8
authored
Jan 24, 2014
by
Sebastian Thorarensen
Committed by
Per Cederqvist
Jul 25, 2014
Browse files
Updated the config for Lysator.
* fetch-backup-work: Replace celsius with thestral and correct the ftp-pub backup.
parent
e8e43d62
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
38668cd8
2014-01-24 Sebastian Thorarensen <sebth@lysator.liu.se>
Updated the config for Lysator.
* fetch-backup-work: Replace celsius with thestral and correct
the ftp-pub backup.
2014-01-22 Sebastian Thorarensen <sebth@lysator.liu.se>
Updated the config for Lysator.
* fetch-backup-work: bacon is now used instead of stalhein for
fetching auto_home. ftp mirror exclude list is now up to date.
...
...
fetch-backup-work
View file @
38668cd8
...
...
@@ -78,21 +78,34 @@ ssh poseidon 'cd /var/repositories && ls -1 | while read d ; do [ -d "$d" ] && [
|
awk
'{ print "lyssvn", $1, "poseidon", "/var/repositories/" $1 }'
\
|
sort
>>
$NT
echo
celsius root celsius /
>>
$NT
echo
celsius var celsius /var
>>
$NT
ssh ftp
'bash -c "cd /export/ftp/pub && ls -1 | while read d ; do [ -d "\$d" ] && [ ! -L "\$d" ] && echo "\$d" ; done"'
\
|
awk
'$1 == "FreeBSD" { next }
echo
thestral root thestral /
>>
$NT
echo
thestral opt thestral /opt
>>
$NT
echo
thestral usr thestral /usr
>>
$NT
echo
thestral usr-local thestral /usr/local
>>
$NT
echo
thestral var thestral /var
>>
$NT
# The root shell on thestral/ftp is csh, which won't allow escaping
# of double quotes. Therefore we need _single_ quote around the
# argument to sh -c.
ssh thestral
"sh -c 'cd /home && ls -1 | while read d ; do [ -d
\"\$
d
\"
] && [ ! -L
\"\$
d
\"
] && echo
\$
d ; done'"
\
|
awk
'{ print "thestral-home", $1, "thestral", "/home/" $1 }'
\
|
sort
>>
$NT
ssh ftp
"sh -c 'df | cut -wf6 | grep ^/export/ftp/pub/ | sed
\"
s|^/export/ftp/pub/||
\"
| while read d ; do echo
\$
d
\`
echo
\$
d | tr /
\|\`
; done'"
\
|
awk
'$1 == "CentOS" { next }
$1 == "FreeBSD" { next }
$1 == "OpenBSD" { next }
$1 == "archlinux" { next }
$1 == "debian" { next }
$1 == "ubuntu" { next }
$1 == "CentOS" { next }
$1 == "centos" { next }
$1 == "debian-cd" { next }
$1 == "debian-backports" { next }
$1 == "debian-cd" { next }
$1 == "debian-security" { next }
$1 == "epel" { next }
$1 == "fedora" { next }
$1 == "manjaro" { next }
$1 == "monitoring-plugins" { next }
$1 == "ubuntu" { next }
$1 == "ubuntu-dvd" { next }
$1 == "ubuntu-releases" { next }
$1 == "archlinux" { next }
{ print "ftp-pub", $1, "ftp", "/export/ftp/pub/" $1 }'
\
{ print "ftp-pub", $2, "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 }' \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment