Updated sentora_www-backup.sh - creates single tar.gz file of websites

This commit is contained in:
Matthew McKinnon 2016-09-26 22:53:01 +10:00
parent 1e4e476ba6
commit 14771ab147

View File

@ -7,8 +7,10 @@
# Backup your public_html folder under /var/sentora/hostdata/DOMAIN_NAME/public_html # Backup your public_html folder under /var/sentora/hostdata/DOMAIN_NAME/public_html
#find domains WEBPATH=$(find /var/sentora/hostdata/* -maxdepth 0 -type d | awk -F/ '{print $5}')
find /var/sentora/hostdata/* -maxdepth 0 -type d | awk -F/ '{print $5}' for SITES in $WEBPATH; do
tar -zcvf /BACKUP/www/$SITES.tar.gz /var/sentora/hostdata/$SITES
done