home · contact · privacy
Add borg repo mirroring.
[config] / buster / setup_scripts / setup_website.sh
index 2eabead2c8a83ea8a0bcb02bebe7c02ad8510a3e..fef4b6772282d0cc25cf2c2d3606518032809c12 100755 (executable)
@@ -84,6 +84,13 @@ chown plom:plom /home/plom/.plomlombot
 systemctl enable plomlombot.service
 service plomlombot start
 
+# Migrate borg repo.
+cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
+su -lc "./mirror_dir.sh ${old_server} /home/plom/borg" plom
+
+# Clean up
+rm /home/plom/{prepare_to_meet_server,mirror_dir}.sh
+
 # TODO:
 # - commit git-daemon-export-ok directly into the public repos; rename
 #   /home/plom/public_repos to /home/plom/repos