Skip to content

Commit 2003a74

Browse files
committed
Fixed excluding folders named "logs" from restore backup
Thanks to @davidgolsen for the solution and @kpapad904 for pointing us to it.
1 parent 2d37ec0 commit 2003a74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ All notable changes to this project will be documented in this file.
6565
- Fixed IfModule mpm_itk.c for apache2 templates.
6666
- Added mpm_itk for Deb10 single php installation only.
6767
- Hardening nginx configuration, drop TLSv1.1 support.
68+
- Fixed excluding folders named "logs" from restore backup, thanks to @davidgolsen.
6869

6970
## [1.0.6] - 2019-09-24 - Hotfix
7071
### Bugfixes

bin/v-restore-user

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,7 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
408408
fi
409409
chmod u+w "$HOMEDIR/$user/web/$domain"
410410
user_exec tar -xzpf $tmpdir/web/$domain/domain_data.tar.gz \
411-
-C "$HOMEDIR/$user/web/$domain/" \
412-
--exclude='logs/*'
411+
-C "$HOMEDIR/$user/web/$domain/" --exclude='./logs/*'
413412
if [ "$?" -ne 0 ]; then
414413
rm -rf $tmpdir
415414
error="Can't unpack $domain data tarball"

0 commit comments

Comments
 (0)