Update nodemgmt-scripts.sh
This commit is contained in:
@@ -149,9 +149,8 @@ BACKUP(){
|
|||||||
BACKUP_ITEMS[letsencrypt-certificates]=/etc/letsencrypt
|
BACKUP_ITEMS[letsencrypt-certificates]=/etc/letsencrypt
|
||||||
for item in "${!BACKUP_ITEMS[@]}"
|
for item in "${!BACKUP_ITEMS[@]}"
|
||||||
do
|
do
|
||||||
echo -e "Backing up '${item}'... "
|
echo -en "Backing up '${item}'... "
|
||||||
echo "${BACKUP_FOLDER}/${item}.tar.gz ${BACKUP_ITEMS[$item]}"
|
tar -czPf ${BACKUP_FOLDER}/${item}.tar.gz -C ${BACKUP_ITEMS[$item]} .
|
||||||
tar -czPf ${BACKUP_FOLDER}/${item}.tar.gz -C ${BACKUP_ITEMS[$item]} . --one-top-level=${item}
|
|
||||||
echo -e "${idsCL[Green]}Ok${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Ok${idsCL[Default]}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user