mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 22:04:00 -07:00
Improved backup script for wildcard support
This commit is contained in:
parent
9deebb849f
commit
fe09858035
1 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
|
|||
web_list=$(echo "$web_list" | sed -e "s/ */\ /g" -e "s/^ //")
|
||||
|
||||
i=0
|
||||
set -f
|
||||
|
||||
for domain in $web_list; do
|
||||
((i ++))
|
||||
echo -e "$(date "+%F %T") $domain"
|
||||
|
@ -207,6 +207,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
|
|||
fi
|
||||
|
||||
# Define exclude arguments
|
||||
set -f
|
||||
fargs=()
|
||||
fargs+=(-not)
|
||||
fargs+=(-path)
|
||||
|
@ -235,9 +236,8 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
|
|||
|
||||
# Compress archive
|
||||
gzip -$BACKUP_GZIP $tmpdir/web/$domain/domain_data.tar
|
||||
|
||||
done
|
||||
set +f
|
||||
done
|
||||
|
||||
# Print total
|
||||
if [ "$i" -eq 1 ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue