Skip to content

Commit 39ac9d2

Browse files
authored
Merge branch 'staging/fixes' into fix/1213-remove_ssh
2 parents afc0897 + b03192f commit 39ac9d2

File tree

50 files changed

+5700
-5350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+5700
-5350
lines changed

bin/v-backup-user

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,11 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
245245
set +f
246246

247247
# Backup files
248-
tar ${fargs[@]} -cpf- * | gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
248+
if [ "$BACKUP_MODE" = 'zstd' ]; then
249+
tar ${fargs[@]} -cpf- * | zstd -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.zst
250+
else
251+
tar ${fargs[@]} -cpf- * | gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
252+
fi
249253
done
250254

251255
# Print total
@@ -358,10 +362,13 @@ if [ ! -z "$MAIL_SYSTEM" ] && [ "$MAIL" != '*' ]; then
358362
tee -a $BACKUP/$user.log
359363
fi
360364
done
361-
362365
# Compress archive
363366
if [ ${#accounts[@]} -gt 0 ]; then
364-
tar -cpf- ${accounts[@]} |gzip -$BACKUP_GZIP - > $tmpdir/mail/$domain/accounts.tar.gz
367+
if [ "$BACKUP_MODE" = 'zstd' ]; then
368+
tar -cpf- ${accounts[@]} | zstd -$BACKUP_GZIP - > $tmpdir/mail/$domain/accounts.tar.zst
369+
else
370+
tar -cpf- ${accounts[@]} | gzip -$BACKUP_GZIP - > $tmpdir/mail/$domain/accounts.tar.gz
371+
fi
365372
fi
366373
done
367374

@@ -406,7 +413,12 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB" != '*' ]; then
406413
grep "DB='$database'" $conf > hestia/db.conf
407414

408415
dump="$tmpdir/db/$database/$database.$TYPE.sql"
409-
dumpgz="$tmpdir/db/$database/$database.$TYPE.sql.gz"
416+
if [ "$BACKUP_MODE" = 'zstd' ]; then
417+
dumpgz="$tmpdir/db/$database/$database.$TYPE.sql.zst"
418+
else
419+
dumpgz="$tmpdir/db/$database/$database.$TYPE.sql.gz"
420+
fi
421+
410422
grants="$tmpdir/db/$database/conf/$database.$TYPE.$DBUSER"
411423
if [ ! -f "$dumpgz" ]; then
412424

@@ -432,7 +444,12 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB" != '*' ]; then
432444
esac
433445

434446
# Compress dump
435-
gzip -$BACKUP_GZIP $dump
447+
if [ "$BACKUP_MODE" = 'zstd' ]; then
448+
zstd -$BACKUP_GZIP $dump
449+
rm $dump;
450+
else
451+
gzip -$BACKUP_GZIP $dump
452+
fi
436453
fi
437454
done
438455

@@ -508,7 +525,12 @@ if [ "$USER" != '*' ]; then
508525
check_backup_conditions
509526

510527
# Backup files and dirs
511-
tar --anchored -cpf- ${fargs[@]} $udir |gzip -$BACKUP_GZIP - > $tmpdir/user_dir/$udir.tar.gz
528+
if [ "$BACKUP_MODE" = 'zstd' ]; then
529+
tar --anchored -cpf- ${fargs[@]} $udir | zstd -$BACKUP_GZIP - > $tmpdir/user_dir/$udir.tar.zst
530+
else
531+
tar --anchored -cpf- ${fargs[@]} $udir | gzip -$BACKUP_GZIP - > $tmpdir/user_dir/$udir.tar.gz
532+
fi
533+
512534
fi
513535
done
514536
set +f
@@ -523,6 +545,9 @@ if [ "$USER" != '*' ]; then
523545
tee -a $BACKUP/$user.log
524546
fi
525547
fi
548+
if [ "$BACKUP_MODE" = 'zstd' ]; then
549+
touch $tmpdir/.zstd
550+
fi
526551

527552
# Get backup size
528553
size="$(du -shm $tmpdir |cut -f 1)"

bin/v-extract-fs-archive

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ if [ ! -z "$(echo $src_file |egrep -i '.tgz|.tar.gz')" ]; then
6464
user_exec tar -tf "$src_file" --no-wildcards "$selected_dir" >/dev/null 2>&1
6565
rc=$?
6666
fi
67-
6867
fi
6968

7069
# Extracting bziped archive
@@ -80,6 +79,27 @@ if [ ! -z "$(echo $src_file |egrep -i '.tbz|.tar.bz')" ]; then
8079
fi
8180
fi
8281

82+
# Extracting ZSTD archive
83+
if [ ! -z "$(echo $src_file |egrep -i '.tar.zst')" ]; then
84+
x='yes'
85+
if [ -z "$test" ] || [ "$test" = "no" ]; then
86+
user_exec mkdir -p "$dst_dir" >/dev/null 2>&1
87+
user_exec tar -I zstd -xf "$src_file" -C "$dst_dir" --no-wildcards "$selected_dir" $tar_strip_level >/dev/null 2>&1
88+
rc=$?
89+
else
90+
user_exec tar -I zstd -tf "$src_file" --no-wildcards "$selected_dir" >/dev/null 2>&1
91+
rc=$?
92+
fi
93+
fi
94+
95+
# Extracting gziped file
96+
if [ ! -z "$(echo $src_file |grep -i '.zst')" ] && [ -z "$x" ]; then
97+
user_exec mkdir -p "$dst_dir" >/dev/null 2>&1
98+
user_exec mv "$src_file" "$dst_dir" >/dev/null 2>&1
99+
user_exec zstd -d "$dst_dir/$(basename $src_file)" >/dev/null 2>&1
100+
rc=$?
101+
fi
102+
83103
# Extracting gziped file
84104
if [ ! -z "$(echo $src_file |grep -i '.gz')" ] && [ -z "$x" ]; then
85105
user_exec mkdir -p "$dst_dir" >/dev/null 2>&1

bin/v-restore-user

Lines changed: 78 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,17 @@ fi
120120

121121
# Set default backup source system
122122
backup_system="hestia"
123+
backup_mode="gzip"
123124

124125
# Check if it is a Vesta backup
125126
if tar -tf "$BACKUP/$backup" ./vesta >/dev/null 2>&1; then
126127
backup_system="vesta"
127128
fi
128129

130+
if tar -tf "$BACKUP/$backup" ./.zstd >/dev/null 2>&1; then
131+
backup_mode="zstd"
132+
fi
133+
129134
# Restoring user account
130135
if [ "$create_user" = 'yes' ]; then
131136
echo "-- USER --" |tee $tmpdir/restore.log
@@ -170,7 +175,11 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
170175

171176
# Creating web domain restore list
172177
backup_domains=$(tar -tf $BACKUP/$backup |grep "^./web")
173-
backup_domains=$(echo "$backup_domains" |grep domain_data.tar.gz)
178+
if [ "$backup_mode" = "zstd" ]; then
179+
backup_domains=$(echo "$backup_domains" |grep domain_data.tar.zst)
180+
else
181+
backup_domains=$(echo "$backup_domains" |grep domain_data.tar.gz)
182+
fi
174183
backup_domains=$(echo "$backup_domains" |cut -f 3 -d /)
175184
if [ -z "$web" ] || [ "$web" = '*' ]; then
176185
domains="$backup_domains"
@@ -307,10 +316,19 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
307316
fi
308317
chmod u+w "$HOMEDIR/$user/web/$domain"
309318
[[ -d $HOMEDIR/$user/web/$domain/stats ]] && chmod u+w "$HOMEDIR/$user/web/$domain/stats"
310-
user_exec tar -xzpf $tmpdir/web/$domain/domain_data.tar.gz \
311-
-C "$HOMEDIR/$user/web/$domain/" \
312-
--anchored \
313-
--exclude='logs/*'
319+
320+
if [ "$backup_mode" = "zstd" ]; then
321+
user_exec tar -I zstd -xpf $tmpdir/web/$domain/domain_data.tar.zst \
322+
-C "$HOMEDIR/$user/web/$domain/" \
323+
--anchored \
324+
--exclude='logs/*'
325+
else
326+
user_exec tar -xzpf $tmpdir/web/$domain/domain_data.tar.gz \
327+
-C "$HOMEDIR/$user/web/$domain/" \
328+
--anchored \
329+
--exclude='logs/*'
330+
fi
331+
314332
if [ "$?" -ne 0 ]; then
315333
rm -rf $tmpdir
316334
error="Can't unpack $domain data tarball"
@@ -573,22 +591,39 @@ if [ "$mail" != 'no' ] && [ ! -z "$MAIL_SYSTEM" ]; then
573591
format_domain_idn
574592

575593
# Restoring emails
576-
if [ -e "$tmpdir/mail/$domain/accounts.tar.gz" ]; then
577-
chmod u+w "$HOMEDIR/$user/mail/$domain_idn"
578-
$BIN/v-extract-fs-archive "$user" "$tmpdir/mail/$domain/accounts.tar.gz" "$HOMEDIR/$user/mail/$domain_idn/"
579-
if [ "$?" -ne 0 ]; then
580-
rm -rf $tmpdir
581-
error="Can't unpack $domain mail account container"
582-
echo "$error" |$SENDMAIL -s "$subj" $email $notify
583-
sed -i "/ $user /d" $HESTIA/data/queue/backup.pipe
584-
check_result "$E_PARSING" "$error"
594+
if [ $BACKUP_MODE = 'zstd' ]; then
595+
if [ -e "$tmpdir/mail/$domain/accounts.tar.zst" ]; then
596+
chmod u+w "$HOMEDIR/$user/mail/$domain_idn"
597+
$BIN/v-extract-fs-archive "$user" "$tmpdir/mail/$domain/accounts.tar.zst" "$HOMEDIR/$user/mail/$domain_idn/"
598+
if [ "$?" -ne 0 ]; then
599+
rm -rf $tmpdir
600+
error="Can't unpack $domain mail account container"
601+
echo "$error" |$SENDMAIL -s "$subj" $email $notify
602+
sed -i "/ $user /d" $HESTIA/data/queue/backup.pipe
603+
check_result "$E_PARSING" "$error"
604+
fi
605+
606+
# Chowning as owner needs to be user:mail instead of user:user
607+
find $HOMEDIR/$user/mail/$domain_idn -user $user \
608+
-exec chown -h $user:mail {} \;
609+
fi
610+
else
611+
if [ -e "$tmpdir/mail/$domain/accounts.tar.gz" ]; then
612+
chmod u+w "$HOMEDIR/$user/mail/$domain_idn"
613+
$BIN/v-extract-fs-archive "$user" "$tmpdir/mail/$domain/accounts.tar.gz" "$HOMEDIR/$user/mail/$domain_idn/"
614+
if [ "$?" -ne 0 ]; then
615+
rm -rf $tmpdir
616+
error="Can't unpack $domain mail account container"
617+
echo "$error" |$SENDMAIL -s "$subj" $email $notify
618+
sed -i "/ $user /d" $HESTIA/data/queue/backup.pipe
619+
check_result "$E_PARSING" "$error"
620+
fi
621+
622+
# Chowning as owner needs to be user:mail instead of user:user
623+
find $HOMEDIR/$user/mail/$domain_idn -user $user \
624+
-exec chown -h $user:mail {} \;
585625
fi
586-
587-
# Chowning as owner needs to be user:mail instead of user:user
588-
find $HOMEDIR/$user/mail/$domain_idn -user $user \
589-
-exec chown -h $user:mail {} \;
590626
fi
591-
592627
# Chowning mail conf files to exim user
593628
find $HOMEDIR/$user/conf/mail/$domain_idn -user root \
594629
-exec chown $exim_user {} \;
@@ -661,7 +696,11 @@ if [ "$db" != 'no' ] && [ ! -z "$DB_SYSTEM" ]; then
661696
fi
662697

663698
# Unzipping database dump
664-
gzip -d $tmpdir/db/$database/$database.*.sql.gz
699+
if [ $BACKUP_MODE = 'zstd' ]; then
700+
zstd -d $tmpdir/db/$database/$database.*.sql.zst
701+
else
702+
gzip -d $tmpdir/db/$database/$database.*.sql.gz
703+
fi
665704

666705
# Importing database dump
667706
database_dump="$tmpdir/db/$database/$database.$TYPE.sql"
@@ -720,9 +759,15 @@ if [ "$udir" != 'no' ]; then
720759

721760
# Creating user dir restore list
722761
backup_dirs=$(tar -tf $BACKUP/$backup |grep "^./user_dir")
723-
backup_dirs=$(echo "$backup_dirs" |grep tar.gz)
724-
backup_dirs=$(echo "$backup_dirs" |cut -f 3 -d /)
725-
backup_dirs=$(echo "$backup_dirs" |sed "s/.tar.gz//")
762+
if [ $BACKUP_MODE = 'zstd' ]; then
763+
backup_dirs=$(echo "$backup_dirs" |grep tar.zst)
764+
backup_dirs=$(echo "$backup_dirs" |cut -f 3 -d /)
765+
backup_dirs=$(echo "$backup_dirs" |sed "s/.tar.zst//")
766+
else
767+
backup_dirs=$(echo "$backup_dirs" |grep tar.gz)
768+
backup_dirs=$(echo "$backup_dirs" |cut -f 3 -d /)
769+
backup_dirs=$(echo "$backup_dirs" |sed "s/.tar.gz//")
770+
fi
726771
if [ -z "$udir" ] || [ "$udir" = '*' ]; then
727772
user_dirs="$backup_dirs"
728773
else
@@ -732,7 +777,11 @@ if [ "$udir" != 'no' ]; then
732777

733778
for user_dir in $user_dirs; do
734779
echo -e "$(date "+%F %T") $user_dir" |tee -a $tmpdir/restore.log
735-
tar xf "$BACKUP/$backup" -C "$tmpdir" --no-wildcards "./user_dir/$user_dir.tar.gz"
780+
if [ $BACKUP_MODE = 'zstd' ]; then
781+
tar xf "$BACKUP/$backup" -C "$tmpdir" --no-wildcards "./user_dir/$user_dir.tar.zst"
782+
else
783+
tar xf "$BACKUP/$backup" -C "$tmpdir" --no-wildcards "./user_dir/$user_dir.tar.gz"
784+
fi
736785
if [ "$?" -ne 0 ]; then
737786
rm -rf $tmpdir
738787
error="Can't unpack $user_dir user dir container"
@@ -744,7 +793,11 @@ if [ "$udir" != 'no' ]; then
744793
chown "$user" "$tmpdir/user_dir"
745794
chown "$user" "$HOMEDIR/$user"
746795
[ -e "$HOMEDIR/$user/$user_dir" ] && chown "$user" "$HOMEDIR/$user/$user_dir"
747-
$BIN/v-extract-fs-archive "$user" "$tmpdir/user_dir/$user_dir.tar.gz" "$HOMEDIR/$user"
796+
if [ $BACKUP_MODE = 'zstd' ]; then
797+
$BIN/v-extract-fs-archive "$user" "$tmpdir/user_dir/$user_dir.tar.zst" "$HOMEDIR/$user"
798+
else
799+
$BIN/v-extract-fs-archive "$user" "$tmpdir/user_dir/$user_dir.tar.gz" "$HOMEDIR/$user"
800+
fi
748801
cmdstatus="$?"
749802
chown root:root "$HOMEDIR/$user"
750803
if [ "$cmdstatus" -ne 0 ]; then

install/hst-install-debian.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if [ "$release" -eq 9 ]; then
4444
sudo bc ftp lsof rrdtool quota e2fslibs bsdutils e2fsprogs curl
4545
imagemagick fail2ban dnsutils bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx
4646
hestia-php expect libmail-dkim-perl unrar-free vim-common acl sysstat
47-
rsyslog openssh-server setpriv ipset libapache2-mod-ruid2"
47+
rsyslog openssh-server setpriv ipset libapache2-mod-ruid2 zstd"
4848
elif [ "$release" -eq 10 ]; then
4949
software="nginx apache2 apache2-utils apache2-suexec-custom
5050
apache2-suexec-pristine libapache2-mod-fcgid libapache2-mod-php$fpm_v
@@ -61,7 +61,7 @@ elif [ "$release" -eq 10 ]; then
6161
quota e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
6262
bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx hestia-php expect
6363
libmail-dkim-perl unrar-free vim-common acl sysstat rsyslog openssh-server
64-
util-linux ipset libapache2-mpm-itk"
64+
util-linux ipset libapache2-mpm-itk zstd"
6565
fi
6666

6767
installer_dependencies="apt-transport-https curl dirmngr gnupg wget ca-certificates"
@@ -1075,6 +1075,7 @@ fi
10751075
# Backups
10761076
echo "BACKUP_SYSTEM='local'" >> $HESTIA/conf/hestia.conf
10771077
echo "BACKUP_GZIP='9'" >> $HESTIA/conf/hestia.conf
1078+
echo "BACKUP_MODE='zstd'" >> $HESTIA/conf/hestia.conf
10781079

10791080
# Language
10801081
echo "LANGUAGE='$lang'" >> $HESTIA/conf/hestia.conf

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
4444
postgresql postgresql-contrib proftpd-basic quota roundcube-core
4545
roundcube-mysql roundcube-plugins rrdtool rssh spamassassin sudo hestia=${HESTIA_INSTALL_VER}
4646
hestia-nginx hestia-php vim-common vsftpd whois zip acl sysstat setpriv
47-
ipset libonig5 libzip5 openssh-server"
47+
ipset libonig5 libzip5 openssh-server zstd"
4848

4949
installer_dependencies="apt-transport-https curl dirmngr gnupg wget software-properties-common ca-certificates"
5050

@@ -1113,6 +1113,7 @@ fi
11131113
# Backups
11141114
echo "BACKUP_SYSTEM='local'" >> $HESTIA/conf/hestia.conf
11151115
echo "BACKUP_GZIP='9'" >> $HESTIA/conf/hestia.conf
1116+
echo "BACKUP_MODE='zstd'" >> $HESTIA/conf/hestia.conf
11161117

11171118
# Language
11181119
echo "LANGUAGE='$lang'" >> $HESTIA/conf/hestia.conf

install/upgrade/versions/1.3.0.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ done
1818

1919
# Add default SSL Certificate config when ip is visited
2020
if [ "$PROXY_SYSTEM" = "nginx" ]; then
21-
echo "[ ! ] Update IP.conf"
21+
echo "[ * ] Update IP.conf"
2222
while read IP; do
2323
rm /etc/nginx/conf.d/$IP.conf
2424
cat $WEBTPL/$PROXY_SYSTEM/proxy_ip.tpl |\
@@ -45,11 +45,15 @@ fi
4545

4646
# Remove old lanugage files.
4747
if [ -e $HESTIA/web/inc/i18n/en.php ]; then
48-
echo "[!] Clean up old language files"
48+
echo "[ * ] Clean up old language files"
4949
rm -fr $HESTIA/web/inc/i18n
5050
fi
5151

5252
if [ -e "/etc/exim4/exim4.conf.template" ]; then
5353
echo "[ * ] Updating exim4 configuration..."
5454
sed -i 's/${if match {${lc:$mime_filename}}{\\N(\\.ade|\\.adp|\\.bat|\\.chm|\\.cmd|\\.com|\\.cpl|\\.exe|\\.hta|\\.ins|\\.isp|\\.jse|\\.lib|\\.lnk|\\.mde|\\.msc|\\.msp|\\.mst|\\.pif|\\.scr|\\.sct|\\.shb|\\.sys|\\.vb|\\.vbe|\\.vbs|\\.vxd|\\.wsc|\\.wsf|\\.wsh)$\\N}{1}{0}}/${if match {${lc:$mime_filename}}{\\N(\\.ace|\\.ade|\\.adp|\\.app|\\.arj|\\.asp|\\.aspx|\\.asx|\\.bas|\\.bat|\\.cab|\\.cer|\\.chm|\\.cmd|\\.cnt|\\.com|\\.cpl|\\.crt|\\.csh|\\.der|\\.diagcab|\\.dll|\\.efi|\\.exe|\\.fla|\\.fon|\\.fxp|\\.gadget|\\.grp|\\.hlp|\\.hpj|\\.hta|\\.htc|\\.img|\\.inf|\\.ins|\\.iso|\\.isp|\\.its|\\.jar|\\.jnlp|\\.js|\\.jse|\\.ksh|\\.lib|\\.lnk|\\.mad|\\.maf|\\.mag|\\.mam|\\.maq|\\.mar|\\.mas|\\.mat|\\.mau|\\.mav|\\.maw|\\.mcf|\\.mda|\\.mdb|\\.mde|\\.mdt|\\.mdw|\\.mdz|\\.msc|\\.msh|\\.msh1|\\.msh1xml|\\.msh2|\\.msh2xml|\\.mshxml|\\.msi|\\.msp|\\.mst|\\.msu|\\.ops|\\.osd|\\.pcd|\\.pif|\\.pl|\\.plg|\\.prf|\\.prg|\\.printerexport|\\.ps1|\\.ps1xml|\\.ps2|\\.ps2xml|\\.psc1|\\.psc2|\\.psd1|\\.psdm1|\\.pst|\\.py|\\.pyc|\\.pyo|\\.pyw|\\.pyz|\\.pyzw|\\.reg|\\.scf|\\.scr|\\.sct|\\.sfx|\\.shb|\\.shs|\\.swf|\\.sys|\\.theme|\\.tmp|\\.ttf|\\.url|\\.vb|\\.vba|\\.vbe|\\.vbp|\\.vbs|\\.vhd|\\.vhdx|\\.vsmacros|\\.vsw|\\.vxd|\\.webpnp|\\.website|\\.wim|\\.ws|\\.wsc|\\.wsf|\\.wsh|\\.xbap|\\.xll|\\.xnk)$\\N}{1}{0}}/g' /etc/exim4/exim4.conf.template
5555
fi
56+
57+
# Change backup mode to zstd.
58+
echo "[ * ] Enable new backup compression zstd as default."
59+
$HESTIA/v-change-sys-config-value "BACKUP_MODE" "zstd"

src/deb/hestia/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com
88
Architecture: amd64
9-
Depends: bash, awk, sed, acl, sysstat, setpriv | util-linux (>= 2.33)
9+
Depends: bash, awk, sed, acl, sysstat, setpriv | util-linux (>= 2.33), zstd
1010
Description: hestia
1111
hestia is an open source hosting control panel.
1212
hestia has a clean and focused interface without the clutter.

web/edit/server/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,17 @@
412412
}
413413
}
414414

415+
// Change backup gzip level
416+
if (empty($_SESSION['error_msg'])) {
417+
if ($_POST['v_backup_mode'] != $v_backup_gzip ) {
418+
exec (HESTIA_CMD."v-change-sys-config-value BACKUP_MODE ".escapeshellarg($_POST['v_backup_mode']), $output, $return_var);
419+
check_return_code($return_var,$output);
420+
unset($output);
421+
if (empty($_SESSION['error_msg'])) $v_backup_gzip = $_POST['v_backup_mode'];
422+
$v_backup_adv = 'yes';
423+
}
424+
}
425+
415426
// Change backup path
416427
if (empty($_SESSION['error_msg'])) {
417428
if ($_POST['v_backup_dir'] != $v_backup_dir ) {

0 commit comments

Comments
 (0)