Skip to content
Snippets Groups Projects
Select Git revision
  • ca38b01b095ff70aad3e693f8d1bad589425c2e6
  • master default protected
  • 7771-harden-postgres-backup
  • pgsql-dump-with-snapshots
  • update-colors
  • update-docs-css
  • usb-repair-stick
  • desktop-notification
  • 7000-corrections
  • db-detector
10 results

20_Database.md

Blame
  • user avatar
    Hahn Axel (hahn) authored
    ab8f04f8
    History

    Basic settings for database backups

    There are 2 required values in the jobs/backup.job

    dir-localdumps = /var/iml-backup
    keep-days = 7

    This defines the backup target for sql dumps and how long they will be kept locally.

    There is an optional value to define the target directory for archived dumps. This value is used for couchdb2 only.

    dir-dbarchive = /var/localdumps/archive

    see backup.job

    Backup sqlite

    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.

    Per database file set a line with the sqlite = prefix

    sqlite = /var/lib/whatever/sqlite-database_01.db
    sqlite = /var/lib/somewhere/else/db.sqlite

    see backup-dbfiles.job