This might be somewhat of both a bug report, feature and support request. :)
On my Virtualmin servers, I have separate partitions for "/" and "/home". Now let's say /home gets completely lost and needs to be restored. (My actual use case is somewhat different, but has the same outcome.)
When I try to restore Virtualmin backups, I run into a little snag. Since the virtual servers still exist, from a Vmin standpoint, and just their home directories are gone, it does not try to re-create those.
This results in error messages when it tries to restore the home directory contents. It does not re-create a missing "/home/serverowner" before invoking TAR, which subsequently complains about missing directory.
How to handle this? Do I have to delete the virtual servers so VM fully recreates them? Would be a little sad if most of its settings are still intact and only the home is gone. Or do I have to manually create the home directories? Can be quite the hassle for 30+ virtual servers, especially when using non-standard home folder names like I do.
I think Virtualmin should automatically re-create any missing directory structure when restoring servers.
Comments
Submitted by JamieCameron on Sat, 09/03/2011 - 14:07 Comment #1
This is a bug in the restore process .. it should re-create the home directory if missing. I will fix this in the next Virtualmin release.
Till then, the only work-around is to re-create all the missing home directories before doing the restore.
You should be able to do this with a command like :
mkdir -p \`virtualmin list-domains --home-only\`
and then do the restore.
Submitted by Locutus on Sun, 09/04/2011 - 07:32 Comment #2
Thanks, I'll try that.
Submitted by Issues on Sun, 09/18/2011 - 08:27 Comment #3
Automatically closed -- issue fixed for 2 weeks with no activity.