Page 1 of 1

problem with backup exclusions

Posted: Thu Feb 23, 2023 11:00 am
by alter
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

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 6:55 pm
by myVesta
try to revert this fix - https://github.com/myvesta/vesta/commit ... 6f89c46578
maybe this disturbs exclusions?

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 7:26 pm
by alter
I can try but the v-backup-user file on my server is dated 12 feb 23, and the fix is september 22. I didnt change anything and exclusions worked 20 days ago.

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 7:46 pm
by alter
Ok, I have modified v-backup-user and backup works fine.
My backup file is now 260Mo as usual (and not 4Go with images), images are excluded ok.

Thank you for your help.

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 8:44 pm
by myVesta
Thanks for feedback, we will rollback this pull request.

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 8:53 pm
by myVesta
alter wrote: Thu Feb 23, 2023 7:26 pm I can try but the v-backup-user file on my server is dated 12 feb 23, and the fix is september 22. I didnt change anything and exclusions worked 20 days ago.
we merged it before few days, that's why it's applied with the last update.

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 8:56 pm
by myVesta

Code: Select all

v-update-myvesta
will get the latest code (with rollbacked commit) on your servers.

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 10:57 pm
by n1ebieski
Hi, the command:

Code: Select all

tar --anchored -cpf- ${fargs[@]} --exclude={'./','../'} . |gzip -$BACKUP_GZIP - > $tmpdir/web/$domain/domain_data.tar.gz
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... :/

Re: problem with backup exclusions

Posted: Thu Feb 23, 2023 11:28 pm
by n1ebieski
OK, here is the text of placeholder > https://github.com/myvesta/vesta/blob/m ... n.php#L507

Re: problem with backup exclusions

Posted: Fri Feb 24, 2023 1:44 pm
by myVesta
Should be fixed now with https://github.com/myvesta/vesta/pull/155
Thanks n1ebieski :)