Submitted by lewisjenkins on Tue, 03/26/2013 - 09:55
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
Submitted by lewisjenkins on Tue, 03/26/2013 - 14:01 Comment #1
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:
This way we can backup and restore any combination.
Lewis
Submitted by JamieCameron on Wed, 03/27/2013 - 00:29 Comment #2
Good idea .. I will add an option for this in the next release.
Submitted by Issues on Thu, 04/11/2013 - 19:18 Comment #3
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by iplt on Mon, 08/08/2016 - 03:38 Comment #4
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"...
Submitted by andreychek on Mon, 08/08/2016 - 09:38 Comment #5
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!
Submitted by pragma on Sat, 06/16/2018 - 05:54 Comment #6
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.