problem with backup exclusions

Post Reply
alter
Posts: 6
Joined: Thu Feb 23, 2023 10:43 am

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

Tags:
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

try to revert this fix - https://github.com/myvesta/vesta/commit ... 6f89c46578
maybe this disturbs exclusions?
alter
Posts: 6
Joined: Thu Feb 23, 2023 10:43 am

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.
alter
Posts: 6
Joined: Thu Feb 23, 2023 10:43 am

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.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Thanks for feedback, we will rollback this pull request.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

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.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Code: Select all

v-update-myvesta
will get the latest code (with rollbacked commit) on your servers.
n1ebieski
Posts: 5
Joined: Sun Jul 05, 2020 12:43 pm

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... :/
n1ebieski
Posts: 5
Joined: Sun Jul 05, 2020 12:43 pm

OK, here is the text of placeholder > https://github.com/myvesta/vesta/blob/m ... n.php#L507
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

Should be fixed now with https://github.com/myvesta/vesta/pull/155
Thanks n1ebieski :)
Post Reply