VPS re-install question

To end my VPS troubles I want to re-install. The easy part:

Backup /home/
This should backup all web directories and mailboxes. Will a backup keep the file and directory permission? I will probably use the VPS backup function, plus TAR the whole directory for storage off-site.

One issue - mailboxes:
When I re-create a mailbox user, then move the user directory back in it place it seems all mail is gone. How can I keep the mails in the /homes/user/ directory?

mysql DBs
Backup /var/lib/mysql/

Then re-install VPS and re-install webmin

Is there any webmin function to ease it?
And how to handle those mailboxes with mails inside?

There is a backup function in Virtualmin, under "Backup and Restore", that would allow you to pick and choose what features to backup.

However, the problem with reinstalling is that it doesn’t actually resolve the issue. Unless you know exactly what to do differently, there’s no reason to expect a different result than what you’re seeing now.

The issues you’ve been having sound a lot like issues with available resources – perhaps a lack of RAM. Do you have any swap enabled? That would show up in the “free” output.

Not having swap enabled could definitely cause the trouble you’ve been seeing.
-Eric

However, the problem with reinstalling is that it doesn’t actually resolve the issue. Unless you know exactly what to do differently, there’s no reason to expect a different result than what you’re seeing now.

As a newby I probably installed things which have a negative effect on the system. Since I didn’t had those problem from the beginning I think that a re-install would let me have a clean system.

Then re-install VPS and re-install webmin

So, if you’re using Virtualmin (and it seems likely that you are), I would hope when you say “re-install webmin” you really mean “run the install.sh script, so that the system is in a known good state at the end of it all…and people here will be able to help more readily as they’ll know what your system looks like”. :wink:

But, follow Eric’s advice. I’m just butting in to say that “install webmin” is not sane behavior if what you have is a fresh grade A supported OS, and what you want is a working Virtualmin system.

sure I will use the install.sh script.

I am still not sure how to bring back the users mailboxes to its original state with all mail inside and usable.

When I move the /homes/user/ directory back to were it was before the mailboxes stay blank, as in a complete new setup. What’s the trick when backing up mailboxes?

(I didn’t use any backup function, I just copied the directory to a safe location before deleting that user completely via virtualmin)

(I didn't use any backup function, I just copied the directory to a safe location before deleting that user completely via virtualmin)

That would be your problem. You’re just hell-bent on making your life harder, aren’t you? The “trick” is to use the backup function. :wink:

But, barring that, you’d need to recreate the users manually, and then copy the Maildir folder back into place for each user.