summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkorobeinikov <92354771+mkorobeinikov@users.noreply.github.com>2022-05-04 08:54:39 +1000
committerGitHub <noreply@github.com>2022-05-04 08:54:39 +1000
commit08fc48df0ff64abd34da55c700f2ffca5e3cf163 (patch)
tree9bf8e28afb60dff78ed361ed47615d79842071de
parent07672e05a6f02bf93d6ea59cd21b689174926e79 (diff)
downloadvyatta-op-08fc48df0ff64abd34da55c700f2ffca5e3cf163.tar.gz
vyatta-op-08fc48df0ff64abd34da55c700f2ffca5e3cf163.zip
tech-support-archive: T4377: Exclude saving archives to a new archive.
The commit fixes problem with saving archives to a new archive.
-rwxr-xr-xscripts/tech-support-archive2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tech-support-archive b/scripts/tech-support-archive
index 2321d76..6ebd3db 100755
--- a/scripts/tech-support-archive
+++ b/scripts/tech-support-archive
@@ -51,7 +51,7 @@ fi
builtin cd "$OUT"
echo "Saving the archives..."
-sudo tar zcf config.tgz /opt/vyatta/etc/config --exclude "*tech-support-archive*" >& /dev/null
+sudo tar --exclude "*tech-support-archive*" zcf config.tgz /opt/vyatta/etc/config >& /dev/null
sudo tar zcf etc.tgz /etc >& /dev/null
sudo tar zcf home.tgz /home >& /dev/null
sudo tar zcf var-log.tgz /var/log >& /dev/null