Skip to content

Commit 89b8e2e

Browse files
committed
backup now saves file permission
1 parent cfbcf06 commit 89b8e2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-backup-user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ source $VESTA/func/main.sh
1818
source $VESTA/func/domain.sh
1919
source $VESTA/func/db.sh
2020

21-
subj="Backup $user failed"
21+
subj="Backup for user $user failed"
2222
email=$(grep CONTACT $VESTA/data/users/admin/user.conf |cut -f 2 -d \')
2323

2424

@@ -196,7 +196,7 @@ then
196196
# Packing data folders
197197
cd $HOMEDIR/$user/web/$domain
198198
domain_direcotries=$(ls |grep -v logs)
199-
tar -cf $tmpdir/web/$domain/domain_data.tar $domain_direcotries
199+
tar -cpf $tmpdir/web/$domain/domain_data.tar $domain_direcotries
200200

201201
if [ ! -z "$BACKUP_GZIP" ]; then
202202
gzip -$BACKUP_GZIP $tmpdir/web/$domain/domain_data.tar

0 commit comments

Comments
 (0)