1
0

Configure baclup for sqlite databases

This commit is contained in:
Anton Vakhrushev 2025-05-02 19:05:17 +03:00
parent 76328bf6c6
commit d1eae9b5b5
Signed by: av
GPG Key ID: F5BF52FC352E255A
4 changed files with 21 additions and 9 deletions

View File

@ -10,6 +10,16 @@ models:
type: 'local'
path: '{{ (backup_directory, "gramps") | path_join }}'
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:
includes:
- /home/major/applications/gramps/data

View File

@ -38,11 +38,11 @@
group: root
mode: '0700'
# - name: "Creates a cron file for backups under /etc/cron.d"
# ansible.builtin.cron:
# name: restic backup
# minute: "0"
# hour: "2"
# user: "root"
# job: "systemd-cat {{ bin_prefix }}/restic-backup.sh"
# cron_file: ansible_restic_backup
- name: "Creates a cron file for backups under /etc/cron.d"
ansible.builtin.cron:
name: restic backup
minute: "0"
hour: "0"
user: "root"
job: "systemd-cat {{ bin_prefix }}/restic-backup.sh"
cron_file: ansible_restic_backup

View File

@ -9,7 +9,7 @@
# See: https://github.com/zyedidia/eget/releases
vars:
eget_install_dir: '/usr/local/bin'
eget_install_dir: '{{ bin_prefix }}'
eget_bin_path: '{{ (eget_install_dir, "eget") | path_join }}'
tasks:

View File

@ -16,6 +16,8 @@
- jq
- make
- python3-pip
- sqlite3
- tree
tasks: