Skip to content

Commit

Permalink
Changed cron to systemd.timer (#1186)
Browse files Browse the repository at this point in the history
* cron -> systemd timer in Amanda docs 

Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
maikjoe authored Oct 14, 2020
1 parent 75b26fc commit 2ebb5d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/openhabian-amanda.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ directories of yours.

Note: the raw SD card backup was left out for the AWS S3 config, as that would require a lot of bandwidth and runtime.

openHABian setup routine will create cron entries in `/etc/cron.d/amanda` to start all backups you select every night at 01:00AM.
openHABian setup routine will create systemd timers in `/etc/systemd/system/` to start all backups you select every night at around 01:00AM.

## Backup

Find below a terminal session log of a manually started backup run.
It's showing the three most important commands to use. They all can be started as user *backup* only, interactively or via cron,
It's showing the three most important commands to use. They all can be started as user *backup* only, interactively, via systemd.timer or cron,
and you always need to specify the config to use. You can have multiple backup configs in parallel use.

The `amcheck` command is meant to remind you to put in the right removeable storage medium such as a tape or SD card,
Expand Down Expand Up @@ -572,7 +572,7 @@ You could also move that temporary recovered image file to your Windows PC that
### A final word on when things have gone badly wrong...

and your SD card to contain the Amanda database is broken: you don't have to give up.
Whenever you use a directory as the storage area, openHABian Amanda by default creates a copy of its config and index files (to know what's stored where) in your storage directory once a day (see `/etc/cron.d/amanda`).
Whenever you use a directory as the storage area, openHABian Amanda by default creates a copy of its config and index files (to know what's stored where) in your storage directory once a day (see `/etc/systemd/system/amandaBackupDB.service`).
So you can reinstall openHABian including Amanda from scratch and copy back those files. Eventually see `amadmin import` option.
Even if you fail to recover your index files, you can still access the files in your storage area.
The `amindex` command can be used to regenerate the database. How to apply unfortunately is out of scope for this document so please g**gle if needed.
Expand Down

0 comments on commit 2ebb5d6

Please sign in to comment.