Skip to content
Snippets Groups Projects

Update docs

Merged Hahn Axel (hahn) requested to merge eliminate-scheduler into master
4 files
+ 155
32
Compare changes
  • Side-by-side
  • Inline
Files
4
# Basic settings for database backups #
# Basic settings #
There are 2 required values in the jobs/backup.job
There are 2 defaults:
```
```text
dir-localdumps = /var/iml-backup
keep-days = 7
```
## dir-localdumps ##
{string}
The target directory for local dumps. It is used by
* the database dump scripts
* the transfer script to store the client backups
* the restore script
This defines the backup target for sql dumps and how long they will be kept locally.
Below that one a directory for the service will be generated; inside that one the database dumbs with scheme name and timestamp, i.e.
There is an optional value to define the target directory for archived dumps. This value is used for couchdb2 only.
/var/iml-backup/mysql/mydatabase__20190827-2300.sql.gz
`dir-dbarchive = /var/localdumps/archive`
## keep-days ##
see [backup.job](50_File_backup.job.md)
{integer}
## Backup sqlite ##
The number of days how long to keep dumps locally.
Sqlite files can be located anywhere in the filesystem. That's why the
cannot be located with an auto detection. You need to define them in
the file jobs/backup-dbfiles.job first.
Remark:
To make a database restore its dump must be located at this directory.
Per database file set a line with the `sqlite = ` prefix
To restore an older database you need to restore the dump from the filke backup first.
If you have local Mysql daemon or Pgsql you can test it by starting
```
# dump all databases
sudo ./localdump.sh
```text
sqlite = /var/lib/whatever/sqlite-database_01.db
sqlite = /var/lib/somewhere/else/db.sqlite
```
```
# show written files
find /var/iml-backup
```
see [backup-dbfiles.job](50_File_backup-dbfiles.job.md)
Loading