X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=buster%2Fsetup_scripts%2Fmigrate_borg.sh;h=a119b160dc4a26a9c985ca7c71cf155a1559d786;hb=bd4708e9b51d1ee9fe130791bcbd53688730b0b9;hp=477010b8f99830100387ca14fc560c59a2d78a03;hpb=c758f6d282333666146fb450d55f08fc98842bf4;p=config
diff --git a/buster/setup_scripts/migrate_borg.sh b/buster/setup_scripts/migrate_borg.sh
index 477010b..a119b16 100755
--- a/buster/setup_scripts/migrate_borg.sh
+++ b/buster/setup_scripts/migrate_borg.sh
@@ -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
+rm /home/plom/mirror_dir.sh