Hello community,
I would like to set up a raw sd card copy once a month using amanda, as suggested in the docs:
You can create a second Amanda configuration to only include that raw device and run it say just once every month. Essentially you need to create a copy of the /etc/amanda.conf/openhab-dir directory and contents, but a full explanation is out of scope for these docs.
I want to do just that and fully understand that this is out of scope. I managed to copy/change the config dir to openhab-raw and edited the disklist accordingly, meaning having
openhabian /boot comp-user-tar
openhabian /etc comp-user-tar
openhabian /var/lib/openhab comp-user-tar
in openhab-dir
and having only
openhabian /dev/mmcblk0 comp-amraw
in openhab-raw.
I can successfully run amdump openhab-raw and the backup works.
What I cannot figure out is how/when to run the raw configuration so that it achieves the once per month rule.
As it is doing a full dump on each run anyway, would setting
dumpcycle 30
runspercycle 1
in the openhab-raw configuration and trigger the amdump everyday (similar to /etc/systemd/system/amdump-openhab-dir.timer)
be the correct approach?
Or having
dumpcycle 1
runspercycle 0
and creating a timer that runs, say on the 15th every month?
Thanks for the help and great respect and thanks for the documentation that is very well balanced!
I apologize if this was discussed somwhere already, I could not find it in the community.