2
0
Эх сурвалжийг харах

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

Dan Helfman 7 сар өмнө
parent
commit
d4a02f73b5

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

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