Skip to content

Error out if cache directory does not exist when creating a fresh dup backup

nosmo requested to merge nosmo/backupninja:master into master

This change makes the dup handler fail and inform the user when encountering the behaviour seen in #11286 (closed).

nosmo@Hologram-Rose backupninja =) $ sudo ./src/backupninja -t -d -n -f ./etc/backupninja.conf
Password:
Debug: check_perms /home/nosmo/Documents/code/backupninja/etc/backup.d
Debug: perms: drwx--x---
Debug: gperm: --x
Debug: wperm: ---
Debug: check_perms /home/nosmo/Documents/code/backupninja/etc/backup.d/example.dup
Debug: perms: -rwx------
Debug: gperm: ---
Debug: wperm: ---
Info: >>>> starting action /home/nosmo/Documents/code/backupninja/etc/backup.d/example.dup (because of --now)
Debug: yes
Debug: Data will be encrypted with the GnuPG key KEYID.
Debug: Data will be signed will the GnuPG key KEYID.
Fatal: /var/cache/backupninja does not exist - create it
Fatal: <<<< finished action /home/nosmo/Documents/code/backupninja/etc/backup.d/example.dup: FAILED
Debug: send report to root
Info: FINISHED: 1 actions run. 1 fatal. 0 error. 0 warning.

Merge request reports