Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Disable backup just for one site?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Disable backup just for one site?
  • Quote

Post by youradds » Thu Jan 25, 2018 7:28 am

Hi,

Is it possible to disable the backup ONLY for one user/domain? We have a large domain that makes the server slow right down at night when its running. I have a custom backup script I wrote for another server, and this works well (but its only good for the domain in question). Can I disable backups just for 1 site?

Cheers

Andy
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Disable backup just for one site?
  • Quote

Post by mehargags » Thu Jan 25, 2018 2:02 pm

yes check Backup-->>Exclusions
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Disable backup just for one site?
  • Quote

Post by youradds » Thu Jan 25, 2018 2:05 pm

mehargags wrote:yes check Backup-->>Exclusions
Awesome thanks - exactly what I was looking for :)

Cheers

Andy
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Disable backup just for one site?
  • Quote

Post by youradds » Thu Jan 25, 2018 5:04 pm

mehargags wrote:yes check Backup-->>Exclusions
Hi,

Is this feature confirmed as working? In "Web Domains" I have:

Code: Select all

chambresdhotesfrance.com:public_html,cgi-bin
...and yet when I do the backup, both of those folders are included? The tar I see running is:

Code: Select all

 tar -cpf- cgi-bin compiler document_errors logs private public_html public_shtml startup.pl stats --exclude=logs/*
Thanks

Andy
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Disable backup just for one site?
  • Quote

Post by mehargags » Thu Jan 25, 2018 7:51 pm

I was about to write that... to test if this works exactly as intended.
Sadly, I have seen this behaviour too... the excluded folders still get backed up by the backup routine
I think there is already a thread viewtopic.php?t=9515
May be you can get some pointers ?

more here https://www.google.com/search?q=vestacp ... exclusions
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Disable backup just for one site?
  • Quote

Post by youradds » Fri Jan 26, 2018 1:38 pm

Thanks. I'm a bit confused about this one.

https://raw.githubusercontent.com/sergh ... ackup-user

Code: Select all

if [ -e "$USER_DATA/backup-excludes.conf" ]; then
    echo -e "$(date "+%F %T") backup-excludes.conf"
    msg="$msg\n$(date "+%F %T") backup-excludes.conf"
    cp -r $USER_DATA/backup-excludes.conf $tmpdir/vesta/
fi
I did:
updatedb
locate backup-excludes.conf
...but I get no results. Unfortunately I don't really know how to "read" and tweak that script very well, as I'm not great with Bash (I can do basics, but this is out of my area of expertise =))

Cheers

Andy
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Disable backup just for one site?
  • Quote

Post by mehargags » Fri Jan 26, 2018 2:51 pm

How many sites do you have actually?
If not too many, may be have each user backup individually and then you can leave this site out and have it backup with special script ?
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Disable backup just for one site?
  • Quote

Post by youradds » Fri Jan 26, 2018 3:59 pm

mehargags wrote:How many sites do you have actually?
If not too many, may be have each user backup individually and then you can leave this site out and have it backup with special script ?
Quite a few - probably 20 odd. Just 1 domain on this user.

I'm not too sure what you are suggesting though?
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password