We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Backup exclusions do not work
-
- Posts: 25
- Joined: Wed Sep 09, 2015 7:19 pm
Backup exclusions do not work
I need to prevent a large folder from being backed up. The directory in question is not inside public_html, but it is one level up: /home/username/web/example.com/uploads
I've tried the following:
Web:
example.com:uploads
User Directories:
web/example.com/uploads
/home/username/web/example.com/uploads
Help!
I've tried the following:
Web:
example.com:uploads
User Directories:
web/example.com/uploads
/home/username/web/example.com/uploads
Help!
-
- Posts: 25
- Joined: Wed Sep 09, 2015 7:19 pm
Re: Backup exclusions do not work
I've been patient, still no replies... Really?
Re: Backup exclusions do not work
OS on your server is Ubuntu ?
-
- Posts: 25
- Joined: Wed Sep 09, 2015 7:19 pm
Re: Backup exclusions do not work
Yep, Ubuntu 14.
Also, I'd like to know how to exclude a folder in web/example.com. Can't get that to work either through the user directories exclusion.
Also, I'd like to know how to exclude a folder in web/example.com. Can't get that to work either through the user directories exclusion.
Re: Backup exclusions do not work
will be fixed in the next versionhedgehog90 wrote:Yep, Ubuntu 14.
Also, I'd like to know how to exclude a folder in web/example.com. Can't get that to work either through the user directories exclusion.
-
- Posts: 25
- Joined: Wed Sep 09, 2015 7:19 pm
Re: Backup exclusions do not work
Could you tell me how to fix it myself?
If I can't exclude these massive directories, I won't be able to use the backup function on my server.
If I can't exclude these massive directories, I won't be able to use the backup function on my server.
Re: Backup exclusions do not work
only in new versionhedgehog90 wrote:Could you tell me how to fix it myself?
If I can't exclude these massive directories, I won't be able to use the backup function on my server.
Re: Backup exclusions do not work
backups all work in vesta ,1 domain is about 10mb ,its al to see what you have ,but it works automatic
i have delete my domain ,and have use the backup to put it back i see no problem in backup
i have delete my domain ,and have use the backup to put it back i see no problem in backup
-
- Posts: 25
- Joined: Wed Sep 09, 2015 7:19 pm
Re: Backup exclusions do not work
I've fixed the problem, but being a bash noob it took up my entire morning
For other users experiencing the same problem where web directory exclusions aren't working, do the following:
nano /usr/local/vesta/bin/v-backup-user
Find the line:
xdirs="$(echo -e "${check_exlusion//:/\n}" |grep -v $domain)"
And replace it with
xdirs="$(echo -e "${check_exlusion//:/$'\n'}" |grep -v $domain)"
I also found the backup was producing an error with the domain.sh function 'get_web_config_brds'
I wrote my own templates that didn't use %domain_idn% so it couldn't find the relevant lines. Also I was storing it in a variable like so:
set DOMAIN_IDN=%domain_idn%
Anyway. Fixed now, but I don't appreciate the lack of help on here.
@imperio You could have just told me how to fix the web domain directory exclusion error considering how simple it was to fix.
For other users experiencing the same problem where web directory exclusions aren't working, do the following:
nano /usr/local/vesta/bin/v-backup-user
Find the line:
xdirs="$(echo -e "${check_exlusion//:/\n}" |grep -v $domain)"
And replace it with
xdirs="$(echo -e "${check_exlusion//:/$'\n'}" |grep -v $domain)"
I also found the backup was producing an error with the domain.sh function 'get_web_config_brds'
I wrote my own templates that didn't use %domain_idn% so it couldn't find the relevant lines. Also I was storing it in a variable like so:
set DOMAIN_IDN=%domain_idn%
Anyway. Fixed now, but I don't appreciate the lack of help on here.
@imperio You could have just told me how to fix the web domain directory exclusion error considering how simple it was to fix.
Re: Backup exclusions do not work
hedgehog90, sorry, but only humans on this forum. None of us is superhero, who know all answers. If you have some time, then try to help us and other users - answer and write on this forum too.hedgehog90 wrote: but I don't appreciate the lack of help on here.
You can try to use some code from github..:hedgehog90 wrote:@imperio You could have just told me how to fix the web domain directory exclusion error considering how simple it was to fix.
Code: Select all
# Define exclude arguments
exlusion=$(echo -e "$WEB" |tr ',' '\n' |grep "^$domain:")
set -f
fargs=()
fargs+=(--exclude='logs/*')
if [ ! -z "$exlusion" ]; then
xdirs="$(echo -e "$exlusion" |tr ':' '\n' |grep -v $domain)"
for xpath in $xdirs; do
fargs+=(--exclude=$xpath/*)
echo "$(date "+%F %T") excluding directory $xpath"
msg="$msg\n$(date "+%F %T") excluding directory $xpath"
done
fi
set +f
https://github.com/serghey-rodin/vesta/ ... ackup-user