瀏覽代碼

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

Dan Helfman 9 月之前
父節點
當前提交
d4a02f73b5
共有 1 個文件被更改,包括 1 次插入0 次删除
  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,
             btrfs_command,
             'subvolume',
             'subvolume',
             'snapshot',
             'snapshot',
+            '-r',  # Read-only,
             subvolume_path,
             subvolume_path,
             snapshot_path,
             snapshot_path,
         ),
         ),