Skip to main content
DEDUP DEDUPCRON STUDIO // BORGMATIC & BORG SLICE STUDIO 62 MB / 1M CHUNKS + ZSTD/LZ4 SSH | $6/TB SLICE VS GLACIER | BASELINE 2026-11-21
BorgmaticCron
BorgmaticCron Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Repository & SSH Tuning

Btrfs & LVM-Thin Snapshot Hooks for Crash-Consistent Files

Freeze live application state cleanly using Borgmatic before_backup and after_backup hooks so open files never back up mid-write.

< 2s Snapshot Freeze · Zero Torn Files · Auto Cleanup

Btrfs & LVM-Thin Snapshot Hooks for Crash-Consistent Files
Telemetry baseline verified 2026-11-21 by DedupCron Studio.

Always Register Cleanup Inside on_error Too

If an SSH drop or SIGTERM interrupts Borgmatic mid-backup, after_backup may be skipped unless you also attach snapshot removal to on_error. Lingering LVM snapshots slowly fill thin pools if left mounted.

Pointing source_directories at the Read-Only Snapshot

Mount the frozen LVM or Btrfs snapshot at /mnt/borg_snap and list /mnt/borg_snap inside source_directories so Borg reads a point-in-time consistent tree while live apps keep writing freely.

Measured Thresholds & Borgmatic Configuration

Filesystem Layerbefore_backup Hookafter_backup / on_error Cleanup
LVM-Thin Volumelvcreate -s -n borg_snap /dev/vg0/datalvremove -f /dev/vg0/borg_snap
Btrfs Subvolumebtrfs subvolume snapshot -r /srv /srv/.borg_snapbtrfs subvolume delete /srv/.borg_snap
SQLite / Embedded DBsqlite3 app.db ".backup /tmp/app.bak"rm -f /tmp/app.bak
< 2s Snapshot Freeze · Zero Torn Files · Auto Cleanup InterServer Slice ($6/TB)Vultr HF ($12+/mo)