home · contact · privacy
Fix broken borg migration script.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 8 Oct 2023 23:41:42 +0000 (01:41 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 8 Oct 2023 23:41:42 +0000 (01:41 +0200)
bookworm/setup_scripts/migrate_borg.sh

index 9dad0bc8e9a1c780876ebd61fd80274170ea51bc..4409c868bffbd335bbb6de679181de2e758fb9da 100755 (executable)
@@ -4,6 +4,7 @@ set -e
 
 expect_n_args 1 "(old server IP)" "$@"
 old_server="$1"
+cp "${setup_scripts_dir}/misc.sh" /home/plom/
 cp "${setup_scripts_dir}/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
@@ -12,3 +13,4 @@ rm /home/plom/prepare_to_meet_server.sh
 cp "${setup_scripts_dir}/mirror_dir.sh" /home/plom/
 su -lc "./mirror_dir.sh ${old_server} /home/plom/borg" plom
 rm /home/plom/mirror_dir.sh
+rm /home/plom/misc.sh