home · contact · privacy
Add redo blog URL catcher.
[config] / buster / setup_scripts / migrate_borg.sh
1 #!/bin/sh
2 set -e
3
4 if [ "$#" -ne 1 ]; then
5     echo 'Need  old server IP.'
6     false
7 fi
8 old_server="$1"
9 config_tree_prefix="${HOME}/config/buster"
10 cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
11 su -lc "./mirror_dir.sh ${old_server} /home/plom/borg" plom
12 rm /home/plom/{prepare_to_meet_server,mirror_dir}.sh