Exclude virtualmin-backup from scheduled backups

6 posts / 0 new
Last post
#1 Sun, 03/15/2015 - 05:06
Welshman
Welshman's picture

Exclude virtualmin-backup from scheduled backups

Hi, Is all we need to do to achieve the above would be to add /home/virtualmin-backup in the 'Files to exclude from each domain' input box under 'Features and settings'.

The reason I ask is because I do not need to backup a domain owners own backups do I, I have their sites covered as it is and I use a lot of servers just for backups, so if I can save space all the better.

I just need verification before I mess up my current backup system which is currently working perfect.

Thanks.

Mon, 03/16/2015 - 14:54
Welshman
Welshman's picture

Just looking for an answer here as an official response. As I noticed it's per domain I was wondering if it would look for the directory in sub domains as well.

Chaos Reigns Within, Reflect, Repent and Reboot, Order Shall Return.

Mon, 03/16/2015 - 17:54
Welshman
Welshman's picture

Any chance of verification on this?

Chaos Reigns Within, Reflect, Repent and Reboot, Order Shall Return.

Tue, 03/17/2015 - 10:59
andreychek

Howdy,

I'm unfortunately not entirely certain off the top of my head -- however, it's safe to test that out.

You can see an example syntax by clicking the help text for "Files to exclude from each domain".

Try that out, and make sure it doesn't include the files/dirs that you're trying to exclude.

If you're concerned about modifying your existing Scheduled Backups, you could always perform a one-off backup of an existing domain, and use that as a way to test before making any changes to your scheduled backups.

-Eric

Tue, 03/17/2015 - 11:08
andreychek

And what I forgot to add to the above, is that if it gives you a hard time, let us know and we'll try and sort it out :-)

-Eric

Sat, 06/16/2018 - 05:54
pragma

I tried different methods and this worked perfectly. Please hit "Like" if it works for you as well.

Here is a solution:

Case I: Single Directory Exclude a directory from backups:

/home/example/public_html/docs/


Then syntax in "Files to exclude from each domain" should be:

public_html/docs


Case II: Multiple Directories Exclude multiple directories from backups:

/home/example/public_html/docs/
/home/example/public_html/var/
/home/example/domains/testbackups.example.com/public_html/media/cache/


Then syntax in "Files to exclude from each domain" should be:

public_html/docs
public_html/var
public_html/media/cache


Case III: Exclude file extensions

Exclude .exe .tar .tar.gz :


Then syntax in "Files to exclude from each domain" should be:

*.exe
*.tar
*.tar.gz


Case IV: All above cases at once

public_html/docs
public_html/var
public_html/media/cache
*.exe
*.tar
*.tar.gz


Note: These exclude files/directories are applicable globally for all websites/subdomains included in the backups. If you want to exclude the files/directories for website specific then you need to create schedule different backups for each domain.

Topic locked