diff options
author | Silvino Silva <silvino@bk.ru> | 2016-09-22 05:24:41 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2016-09-22 05:24:41 +0100 |
commit | 1ee2bc2e2945df1a44a57205c8043a52009850c5 (patch) | |
tree | 3f7c6b3d3a6c9de3dd7ddb01a774ab0814e5853b | |
parent | 46097662f5988504cf86a1f6fd75c2cca88c0fb3 (diff) | |
download | doc-1ee2bc2e2945df1a44a57205c8043a52009850c5.tar.gz |
tar backup script fix
-rw-r--r-- | core/scripts/backup-system.sh | 6 | ||||
-rw-r--r-- | tools/tar.html | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/core/scripts/backup-system.sh b/core/scripts/backup-system.sh index 3fa1ab2..bc94f7e 100644 --- a/core/scripts/backup-system.sh +++ b/core/scripts/backup-system.sh @@ -14,9 +14,11 @@ echo $ROOT_DIR tar --xattrs -zcpf $DEST_DIR/$BCK_NAME-`date '+%Y-%j-%H-%M-%S'`.tar.gz \ --directory=$ROOT_DIR \ - --exclude=var/ports \ - --exclude=var/run \ + --exclude=usr/ports \ --exclude=usr/src \ + --exclude=var/run \ + --exclude=var/lock \ + --exclude=srv \ --exclude=mnt \ --exclude=home \ --exclude=dev \ diff --git a/tools/tar.html b/tools/tar.html index d5883e6..c3b7cac 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -34,10 +34,11 @@ tar --xattrs -zcpf $DEST_DIR/$BCK_NAME-`date '+%Y-%j-%H-%M-%S'`.tar.gz \ --directory=$ROOT_DIR \ - --exclude=srv \ - --exclude=var/ports \ - --exclude=var/run \ + --exclude=usr/ports \ --exclude=usr/src \ + --exclude=var/run \ + --exclude=var/lock \ + --exclude=srv \ --exclude=mnt \ --exclude=home \ --exclude=dev \ |