1
0
mirror of https://github.com/HariSekhon/DevOps-Bash-tools.git synced 2025-02-06 09:28:21 +00:00

updated ssh_dump_logs.sh

This commit is contained in:
Hari Sekhon 2024-10-26 02:46:02 +04:00
parent a34431bf11
commit 2787e2b4bc

View File

@ -125,10 +125,11 @@ timestamp "Gunzipping logs to achieve better overall compression"
echo
gunzip "log.$tstamp".*.txt.gz
echo
timestamp "Tarballing logs to: logs.$tstamp.tar.gz"
tarball="logs.$tstamp.tar.gz"
timestamp "Tarballing logs to: $tarball"
echo
tar czvf "logs.$tstamp.tar.gz" "log.$tstamp".*.txt
tar czvf "$tarball" "log.$tstamp".*.txt
echo
timestamp "Tarball ready: logs.$tstamp.tar.gz"
timestamp "Tarball ready: $tarball"
echo
timestamp "Log dumps completed"