Skip to content

Commit

Permalink
Include "hidden" files to backup
Browse files Browse the repository at this point in the history
Files like .htaccess, .env, .git etc
  • Loading branch information
N1ebieski committed Sep 25, 2022
1 parent 5518e0e commit e5a0380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/v-backup-user
Expand Up @@ -265,7 +265,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
set +f

# Backup files
tar --anchored -cpf- ${fargs[@]} * |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
tar --anchored -cpf- ${fargs[@]} --exclude={'./','../'} . |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
done

# Print total
Expand Down

0 comments on commit e5a0380

Please sign in to comment.