Submitted by ADobkin on Wed, 01/28/2015 - 16:23
I posted this in the Virtualmin Support forum about 3 weeks ago but did not get a response, so I am trying again here. If this feature does not yet exist, please consider it a new feature request....
https://virtualmin.com/node/35767
What is the best/easiest method to restore an individual user mailbox account that has been deleted in Virtualmin? I understand how to restore the entire domain and can then extract the user home directory/mailbox manually, but this is a lot of work that must be done by a qualified sysadmin.
Thanks, Alan
Status:
Active
Comments
Submitted by JamieCameron on Wed, 01/28/2015 - 19:23 Comment #1
This can be done, and the easier way is to use the command-line restore API.
The specific command is like :
virtualmin restore-domain --source /path/to/backup.tar.gz --domain whatever.com --feature mail --option mail mailuser XXX
where XXX is the name of the user to restore.
Submitted by ADobkin on Thu, 01/29/2015 - 06:35 Comment #2
Excellent, thanks! I will give this a try the next time a user restore is needed.
I would still like to request a GUI option for this, so other admins, resellers, and possibly even virtual server owners can do this type of restore by themselves without requiring command-line and root access.
Submitted by ADobkin on Thu, 01/29/2015 - 06:37 Comment #3
Also, a suggestion that this feature option should be documented here: https://virtualmin.com/documentation/developer/cli/restore_domain
Submitted by JamieCameron on Thu, 01/29/2015 - 10:30 Comment #4
Yeah, I'll update the docs to add this. There is actually a field for this already in the UI, under the the features section of the restore form.
Submitted by ADobkin on Thu, 01/29/2015 - 10:37 Comment #5
I see the option to restore only Mail/FTP users and aliases, but I don't see any option to select specific user mailboxes.