11 lines
168 B
Bash
Executable file
11 lines
168 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
umask 022
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: $(basename "$0") <hostname>" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
ssh "admin@${1}" /export > "/srv/backup/${1}.rsc"
|