Browse Source

Create Btrfs snapshots as read-only (#251).

Dan Helfman 7 months ago
parent
commit
d4a02f73b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      borgmatic/hooks/data_source/btrfs.py

+ 1 - 0
borgmatic/hooks/data_source/btrfs.py

@@ -134,6 +134,7 @@ def snapshot_subvolume(btrfs_command, subvolume_path, snapshot_path):  # pragma:
             btrfs_command,
             'subvolume',
             'snapshot',
+            '-r',  # Read-only,
             subvolume_path,
             snapshot_path,
         ),