*Feature request* Virtualmin backups - option to exclude '/homes' directory

When restoring the users home directory (for example, to roll-back a website), the content of /homes is also restored which affects IMAP and POP users.

It would be great if the content of /homes was a separate option when backing up / restoring.

For example:

FEATURES & SETTINGS
[ ] Server's home directory and web pages ( Include logs directory)
    [ ] Exclude content in '/homes'

-

Lewis

Status: 
Closed (fixed)

Comments

I've been thinking about this some more. There is another Feature Request from another user here :

https://www.virtualmin.com/node/25525

Their idea is to include the content of /homes with the Mail/FTP users option.

For maximum flexibility, how about this:

FEATURES & SETTINGS
[ ] Server's home directory and web pages (excludes '/homes' - see below)
    [ ] Include log files?
[ ] Mail & FTP users
    [ ] Include '/homes'?

This way we can backup and restore any combination.

Lewis

Good idea .. I will add an option for this in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.

Hello this feature is not working on latest Virtualmin GPL if i will change homes folder to other name via options. tested many exclude options but every time backup include all emails from renamed homes folder and skip option not working... it is working just with folder name "homes"...

iplt, we can certainly look into that, but this particular feature request is a few years old -- it'd be great if you could start a new bug report.

In that, let us know what version of Virtualmin you are using, and then we can work with you to sort out what's going on there. Thanks!

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.