Configure baclup for sqlite databases
This commit is contained in:
parent
76328bf6c6
commit
d1eae9b5b5
@ -10,6 +10,16 @@ models:
|
|||||||
type: 'local'
|
type: 'local'
|
||||||
path: '{{ (backup_directory, "gramps") | path_join }}'
|
path: '{{ (backup_directory, "gramps") | path_join }}'
|
||||||
keep: 2
|
keep: 2
|
||||||
|
databases:
|
||||||
|
users:
|
||||||
|
type: sqlite
|
||||||
|
path: /home/major/applications/gramps/data/gramps_users/users.sqlite
|
||||||
|
sqlite:
|
||||||
|
type: sqlite
|
||||||
|
path: /home/major/applications/gramps/data/gramps_db/59a0f3d6-1c3d-4410-8c1d-1c9c6689659f/sqlite.db
|
||||||
|
undo:
|
||||||
|
type: sqlite
|
||||||
|
path: /home/major/applications/gramps/data/gramps_db/59a0f3d6-1c3d-4410-8c1d-1c9c6689659f/undo.db
|
||||||
archive:
|
archive:
|
||||||
includes:
|
includes:
|
||||||
- /home/major/applications/gramps/data
|
- /home/major/applications/gramps/data
|
||||||
|
@ -38,11 +38,11 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
|
|
||||||
# - name: "Creates a cron file for backups under /etc/cron.d"
|
- name: "Creates a cron file for backups under /etc/cron.d"
|
||||||
# ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
# name: restic backup
|
name: restic backup
|
||||||
# minute: "0"
|
minute: "0"
|
||||||
# hour: "2"
|
hour: "0"
|
||||||
# user: "root"
|
user: "root"
|
||||||
# job: "systemd-cat {{ bin_prefix }}/restic-backup.sh"
|
job: "systemd-cat {{ bin_prefix }}/restic-backup.sh"
|
||||||
# cron_file: ansible_restic_backup
|
cron_file: ansible_restic_backup
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# See: https://github.com/zyedidia/eget/releases
|
# See: https://github.com/zyedidia/eget/releases
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
eget_install_dir: '/usr/local/bin'
|
eget_install_dir: '{{ bin_prefix }}'
|
||||||
eget_bin_path: '{{ (eget_install_dir, "eget") | path_join }}'
|
eget_bin_path: '{{ (eget_install_dir, "eget") | path_join }}'
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
- jq
|
- jq
|
||||||
- make
|
- make
|
||||||
- python3-pip
|
- python3-pip
|
||||||
|
- sqlite3
|
||||||
|
- tree
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user