From 518214574bef0b854445d6aeec4f190cb822c0c9 Mon Sep 17 00:00:00 2001 From: DoTheEvo Date: Sat, 27 Jul 2024 10:23:08 +0200 Subject: [PATCH] update --- kopia_backup/readme.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/kopia_backup/readme.md b/kopia_backup/readme.md index 3c2aa3f..e297fde 100644 --- a/kopia_backup/readme.md +++ b/kopia_backup/readme.md @@ -143,7 +143,11 @@ all that is needed is target that should be backed up. * **mounting backups** -`sudo kopia mount all /mnt/tmp &` - mounts all snapshots
+Be aware of sudo.
+If you connect with sudo, and mount with sudo, +you will need to be root to browse the backups. + +`sudo kopia mount all /mnt/tmp` - mounts all snapshots
`sudo kopia snapshot list`
`sudo kopia mount k7e2b0a503edd7604ff61c68655cd5ad7 /mnt/tmp &`
`sudo umount /mnt/tmp`
@@ -175,11 +179,12 @@ kopia snapshot create $BACKUP_THIS kopia repository disconnect # -------------- ERROR EXIT CODES -------------- -# kopia does not interupts its run with an error if target or repository are missing -# this makes systemd OnSuccess OnFailure not behaving as one might expect -# below are checks for paths, that result in immediate error exit code if they do not exist -# they are at the end because some backup might get done even if another is missing something -# we just want the error exit code +# Kopia does not interrupts its run with an error exit code if a target or a repository are missing. +# This hides errors and makes systemd OnFailure event ineffective. +# Below are the checks for the paths existence, +# resulting in an immediate error exit code any of them do not exist. +# They are at the end because some backup might still get done even if something is missing +# We just want exit code 1 to let systemd know there was a failure. IFS=' ' read -ra paths <<< "$BACKUP_THIS" for path in "${paths[@]}"; do