home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 18 Apr 2020 19:30:47 +0000 (21:30 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 18 Apr 2020 19:30:47 +0000 (21:30 +0200)
buster/setup_scripts/migrate_borg.sh

index 477010b8f99830100387ca14fc560c59a2d78a03..60e288e957a8c189da3a8a1e20df8c3e58d1c573 100755 (executable)
@@ -7,6 +7,11 @@ if [ "$#" -ne 1 ]; then
 fi
 old_server="$1"
 config_tree_prefix="${HOME}/config/buster"
+cp "${config_tree_prefix}/setup_scripts/prepare_to_meet_server.sh" /home/plom/
+chown plom:plom /home/plom/prepare_to_meet_server.sh
+su -lc "./prepare_to_meet_server.sh ${old_server}" plom
+read -p'Hit Enter when you are done.' ignore
+rm /home/plom/prepare_to_meet_server.sh
 cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
 su -lc "./mirror_dir.sh ${old_server} /home/plom/borg" plom
 rm /home/plom/{prepare_to_meet_server,mirror_dir}.sh