Skip to content

Commit

Permalink
feat: btrbk
Browse files Browse the repository at this point in the history
  • Loading branch information
senz committed May 20, 2024
1 parent aced633 commit 7ea96ce
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .chezmoiignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Rpmfile*
Appfile*
certs/
yum.repos.d/
btrbk/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ chezmoi purge
- [ ] Install CA
- [ ] Install VSCode [Sync Settings](https://marketplace.visualstudio.com/items?itemName=zokugun.sync-settings) extension and `download`
- [ ] (Linux) [nitropy](https://docs.nitrokey.com/software/nitropy/linux/udev) and [companion](https://github.com/bitfocus/companion/blob/main/assets/linux/50-companion-desktop.rules) udev rules
- [ ] (Linux) btrbk

<details>
<summary>Sync settings.yml</summary>
Expand Down
1 change: 1 addition & 0 deletions Rpmfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
binutils
btrbk
code
containerd.io
ddccontrol
Expand Down
11 changes: 11 additions & 0 deletions btrbk/btrbk-h.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=btrbk hourly backup
Requires=btrbk.service

[Timer]
OnCalendar=hourly
AccuracySec=10min
Persistent=true

[Install]
WantedBy=timers.target
14 changes: 14 additions & 0 deletions btrbk/btrbk.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
timestamp_format long
snapshot_preserve_min 2h
snapshot_preserve 24h 7d 4w
backend_local_user btrfs-progs-sudo
stream_buffer 256m
lockfile /var/lock/btrbk.lock
btrfs_commit_delete no
snapshot_dir .btrbk_snapshots
# snapshot_create ondemand

volume /
snapshot_dir /home/.btrbk_snapshots
target /mnt/fw1tb/.btrbk_snapshots
subvolume home

0 comments on commit 7ea96ce

Please sign in to comment.