backups lbu to a more permanent location
parent
1a8603e0d4
commit
2c4c541cf5
15
deploy.yml
15
deploy.yml
|
@ -190,6 +190,18 @@
|
||||||
PASSWORD: '{{ lbu_password }}'
|
PASSWORD: '{{ lbu_password }}'
|
||||||
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
||||||
|
- name: create lbu backups directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: /mnt/backups/lbu
|
||||||
|
|
||||||
|
# todo: use less hardcoding
|
||||||
|
- name: make a more permanent lbu backup
|
||||||
|
copy:
|
||||||
|
src: "{{ lbu_backupdir }}/{{ ansible_hostname }}.apkovl.tar.gz.aes-256-cbc"
|
||||||
|
dest: "/mnt/backups/lbu/{{ ansible_hostname }}.apkovl.tar.gz.aes-256-cbc.{{ ansible_date_time.iso8601 }}"
|
||||||
|
remote_src: true
|
||||||
|
|
||||||
- name: mount ro
|
- name: mount ro
|
||||||
hosts:
|
hosts:
|
||||||
- pikvm
|
- pikvm
|
||||||
|
@ -197,6 +209,3 @@
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: mount ro
|
- name: mount ro
|
||||||
command: /usr/local/bin/ro
|
command: /usr/local/bin/ro
|
||||||
|
|
||||||
# todo:
|
|
||||||
# setup-apkcache to use /media/mmcblk0p2
|
|
||||||
|
|
|
@ -99,6 +99,12 @@ all:
|
||||||
opts: "subvol=home,noatime,compress=zstd"
|
opts: "subvol=home,noatime,compress=zstd"
|
||||||
passno: "0"
|
passno: "0"
|
||||||
|
|
||||||
|
- src: "/dev/mapper/disk0"
|
||||||
|
path: "/mnt/backups"
|
||||||
|
fstype: "btrfs"
|
||||||
|
opts: "subvol=backups,noatime,compress=zstd"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
- src: "/dev/mapper/disk0"
|
- src: "/dev/mapper/disk0"
|
||||||
path: "/opt"
|
path: "/opt"
|
||||||
fstype: "btrfs"
|
fstype: "btrfs"
|
||||||
|
|
Loading…
Reference in New Issue