Updated sentora_www-backup.sh - creates single tar.gz file of websites
This commit is contained in:
parent
1e4e476ba6
commit
14771ab147
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user