Update nodemgmt-scripts.sh

This commit is contained in:
2023-05-13 23:09:27 -05:00
parent 7efc2436d0
commit 18c9bd9bb5

View File

@@ -114,7 +114,7 @@ BACKUP(){
fi
for item in "${!BACKUP_ITEMS[@]}"; do
echo "here: ${#BACKUP_ITEMS[$item]}"
c=0; cw=14; spc=''; spc1=50-${#BACKUP_ITEMS[$item]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
c=0; spc=''; spc1=`expr 50 - ${#BACKUP_ITEMS[$item]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "Backing up '${item}'${spc}"
if [ -d ${BACKUP_ITEMS[$item]} ]; then
tar -czPf ${BACKUP_FOLDER}/${item}.tar.gz -C ${BACKUP_ITEMS[$item]} . --exclude='./data/repository' --exclude='*/.stfolder' --exclude='*/.stversions' --exclude='*/.git' >/dev/null 2>&1