Vesta: Backup exclusions not work now

Created on 29 Jan 2018  路  5Comments  路  Source: serghey-rodin/vesta

Operating System (OS/VERSION):

Debian 9

VestaCP Version:

0.9.8 (amd64)

Installed Software (what you got with the installer):

bash vst-install.sh --nginx yes --phpfpm yes --apache no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous no --mysql yes --postgresql no

Good afternoon. I upgraded my servers and installed the latest version of Vesta (before that Vesta was also installed). I noticed that exclusions stopped working when creating backups.

In field Web Domains i'm add
pedanto.com:public_html/upload/shop/pos

But the archive is still created with this folder. I tried all the options, the only working one, only if I set the *. But this is not an option. I will repeat that on the earlier versions everything worked (a year ago).

bug confirmed

Most helpful comment

Please fix this bug, backup must be reliable. Many of CMS systems use cache with hundred thousand of files, currently it's impossible to exclude them.

All 5 comments

Hi. I solved this problem.

Versions
OS: x86-64 Debian 9.3 (stretch) Linux 4.9.0-5-amd64
VestaCP: 0.9.8 (amd64)
tar: 1.29

Solution
In this file: /usr/local/vesta/bin/v-backup-user
In block: Backup files
Line: 232
Replace from:
tar -cpf- * ${fargs[@]} |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
To:
tar -cpf- ${fargs[@]} * |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
Fixed file

Error
Option "--exclude" must be before name of file/directory which will be archived.
Example: tar -cf src.tar --exclude='*.o' src
Source

Great job! It work for me! Thanks alot, Psaproxy!

Any chance on fixing this? :disappointed:

This setting periodically returned back. I have to correct it all times. Fix it at last!

Please fix this bug, backup must be reliable. Many of CMS systems use cache with hundred thousand of files, currently it's impossible to exclude them.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

albasyir picture albasyir  路  7Comments

luizjr picture luizjr  路  8Comments

rinkuyadav999 picture rinkuyadav999  路  5Comments

marii89 picture marii89  路  4Comments

robindirksen1 picture robindirksen1  路  6Comments