This commit is contained in:
Erik Westrup
2023-10-31 08:20:24 +01:00
parent 2973f64dd1
commit f1b29db5fd

View File

@@ -549,9 +549,9 @@ $ sudo make uninstall
# Debugging # Debugging
The best way to debug what's going on is to run the `restic_backup.sh` script with bash's trace function. You can activate it by running the script with `bash -x`: The best way to debug what's going on is to run the `restic_backup.sh` script with bash's trace function. You can activate it by running the script with `bash -x`:
```bash ```consle
source /etc/restic/default.env.sh $ source /etc/restic/default.env.sh
bash -x /bin/restic_backup.sh $ bash -x /bin/restic_backup.sh
``` ```
To debug smaller portions of of the backup script, insert these lines at the top and bottom of the relevant code portions e.g.: To debug smaller portions of of the backup script, insert these lines at the top and bottom of the relevant code portions e.g.: