I configured a backup exclusion in web domains with: mysite.com:public_html/boutique/catalogue
It worked well, my backup file was 260Mo.
But for a few days, the backup file is 4Go because all images in "catalogue" are saved.
Log mail:
2023-02-23 01:11:06 mysite.com
2023-02-23 01:11:06 excluding directory public_html/boutique/catalogue
2023-02-23 01:15:50 admin.mysite.com
2023-02-23 01:15:56 *** 2 domains ***
The exclusion is not actived?
Is there a problem with backup exlusion?
thank you
problem with backup exclusions
Hi, the command:
includes dot files like .htaccess, .env because it checks the whole file path starting from first dot ./
So, if you want to exclude some folders, you have to add ./ at the beginning of the path. In your example: mysite.com:./public_html/boutique/catalogue
Unfortunetely, I dont know how to change the placeholder for the textarea (which misleads now) in vesta backup exclusions panel... :/
Code: Select all
tar --anchored -cpf- ${fargs[@]} --exclude={'./','../'} . |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
So, if you want to exclude some folders, you have to add ./ at the beginning of the path. In your example: mysite.com:./public_html/boutique/catalogue
Unfortunetely, I dont know how to change the placeholder for the textarea (which misleads now) in vesta backup exclusions panel... :/