From 5da50eca8d0ab2701bf53cab07f65e8e64dd9233 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Tue, 8 Nov 2022 21:16:55 +0000 Subject: [PATCH] PrivateBin : ajout README.md --- podman-privatebin/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 podman-privatebin/README.md diff --git a/podman-privatebin/README.md b/podman-privatebin/README.md new file mode 100644 index 0000000..be12a8b --- /dev/null +++ b/podman-privatebin/README.md @@ -0,0 +1,18 @@ +# PrivateBin + +## Restauration +À partir d'une copie des home utilisateur (volumes podman compris) dans `/backup` : +* En tant qu'utilisateur `podman-privatebin` : +``` +podman volume create privatebin-data +``` +* En tant que `root` : +``` +rsync -a /backup/home/podman-privatebin/.local/share/containers/storage/volumes/privatebin-data/_data ~podman-privatebin/.local/share/containers/storage/volumes/privatebin-data/ +chown -R podman-privatebin:podman-users ~podman-privatebin/.local/share/containers/storage/volumes/privatebin-data/_data +``` +* En tant qu'utilisateur `podman-privatebin` : +``` +chown -R 65534:82 ~podman-privatebin/.local/share/containers/storage/volumes/privatebin-data/_data +``` +* Exporter les variables d'environnement et procéder à l'installation normale (10_install.sh)