[modify] change multi-thread compression algo from pixz to pigz, and add a comment of how to uncompress

This commit is contained in:
gitea 2023-11-01 16:33:50 +08:00
parent cf91fbd224
commit 6523b0eac0

View File

@ -41,12 +41,13 @@ fi
if [[ `date +%d` == '01' ]]; then if [[ `date +%d` == '01' ]]; then
t=`date +%Y%m%d%H%M%S` && cd /opt/wd/72-Backups/ t=`date +%Y%m%d%H%M%S` && cd /opt/wd/72-Backups/
tar -I pixz -cf vps-${t}.tar.gz \ tar -I pigz -cf vps-${t}.tar.gz \
--exclude=VPS/apps/localcr/B_koel/local/music \ --exclude=VPS/apps/localcr/B_koel/local/music \
--exclude=VPS/apps/localcr/I_cloudreve/local/cloudreve/uploads \ --exclude=VPS/apps/localcr/I_cloudreve/local/cloudreve/uploads \
--exclude=VPS/apps/localcr/K_nextcloud/local/nextcloud/data/nextcloud/files \ --exclude=VPS/apps/localcr/K_nextcloud/local/nextcloud/data/nextcloud/files \
--exclude=VPS/apps/syncthing/data \ --exclude=VPS/apps/syncthing/data \
VPS/ > /dev/null 2>&1 VPS/ > /dev/null 2>&1
# tar -I unpigz -xf vps-20231101162641.tar.gz
scp -r /opt/configs/certs/ arm1:/opt/ > /dev/null 2>&1 & scp -r /opt/configs/certs/ arm1:/opt/ > /dev/null 2>&1 &
scp -r /opt/configs/certs/ arm2:/opt/ > /dev/null 2>&1 & scp -r /opt/configs/certs/ arm2:/opt/ > /dev/null 2>&1 &