home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add borg repo mirroring.
[config]
/
buster
/
setup_scripts
/
setup_website.sh
diff --git
a/buster/setup_scripts/setup_website.sh
b/buster/setup_scripts/setup_website.sh
index 2eabead2c8a83ea8a0bcb02bebe7c02ad8510a3e..fef4b6772282d0cc25cf2c2d3606518032809c12 100755
(executable)
--- a/
buster/setup_scripts/setup_website.sh
+++ b/
buster/setup_scripts/setup_website.sh
@@
-84,6
+84,13
@@
chown plom:plom /home/plom/.plomlombot
systemctl enable plomlombot.service
service plomlombot start
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
# TODO:
# - commit git-daemon-export-ok directly into the public repos; rename
# /home/plom/public_repos to /home/plom/repos