浏览代码

update automating backups script (#7039)

update "automating backups" script: remove last backslash, use --glob-archives
Emmanuel Tanimowo 2 年之前
父节点
当前提交
f49133da04
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docs/quickstart.rst

+ 3 - 3
docs/quickstart.rst

@@ -191,7 +191,7 @@ backed up and that the ``prune`` command is keeping and deleting the correct bac
         /etc                            \
         /home                           \
         /root                           \
-        /var                            \
+        /var
 
     backup_exit=$?
 
@@ -204,11 +204,11 @@ backed up and that the ``prune`` command is keeping and deleting the correct bac
 
     borg prune                          \
         --list                          \
-        --prefix '{hostname}-'          \
+        --glob-archives '{hostname}-*'  \
         --show-rc                       \
         --keep-daily    7               \
         --keep-weekly   4               \
-        --keep-monthly  6               \
+        --keep-monthly  6    
 
     prune_exit=$?