Debian 9
0.9.8 (amd64)
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).
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.
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.