Restore reseller backup from other webhost, easy way?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
13,784
Location
Maastricht
Suppose a user gets his account suspended.
From the host he does not get a user backup but a reseller backup file of his account.

Now when he goes to another webhost, this one can't restore that, because there will be problems restoring. Mainly also because the accountname is already in use or the new webhost want's to use another accountname.
Next to that the package does not exist etc.

At this point, the only way to restore is to extract the user reseller-backupfile (accountname.tar.gz) and dump mysqlbases and put website back manually.

But how can one restore the users ftp accounts and email accounts and passwords etc.?

I suppose there is no easier way to do this?
 
I don't know what your TOS says, but we never give our customers any backups made on admin/reseller level. And never would accept admin/reseller backups from anybody to deploy a new account. So if you want to be secured restore the things from the backup manually. And run all SQL dumps with end-user credentials.
 
Thank you for your reply.

I would also not accept a bacup made at reseller lever normally.
It's just a hypothetical situation in which the previous webhost would not cooperate anymore and all the user is left with, is this reseller backup of his account.
So I know about dumping sql's.
Are the ftp and email accounts in there too?
 
Are the ftp and email accounts in there too?

Yes, that must be a pain to restore more than 10-20 mail accounts manually. Any way if you decide to use admin/reseller restore function, you'd better check that tar before you start.
 
No I won't use the admin/reseller restore function.

I've got the most important things now. Is there an easy way to restore his email accounts and passwords?

Which database must I dump and wheretoo? Or does it work different?
There are only 4 or 5 email accounts and 1 or 2 ftp accounts luckily.
 
Is there an easy way to restore his email accounts and passwords?

Write a bash script I guess... or search on help.directadmin.com

Which database must I dump and wheretoo? Or does it work different?

Find SQL dump in tar.gz and run it into a created beforehand database
 
Reading your answer, I guess you did not understand what my problem/question is.

Write a bash script I guess... or search on help.directadmin.com
I searched there, could not find anything.
And to make a bash script, you would have to know the command to use and the exact files to use, which I both don't know. Otherwise I would not be asking.

Find SQL dump in tar.gz and run it into a created beforehand database
I was talking about email accounts and ftp accounts. Those are not present in sql dumps. The only 2 sql dumps are found were 1 from joomla and 1 from a newsletter. Which I restored both, that is not a big problem.
Same goes for another backup (which is a user backup).

I think I will just ask the customer to make new ones.

I just was looking for a way to restore the users email and ftp accounts AND passwords belonging to them.
Since you wrote it could be done manually, I'm looking on which files to use and how to restore.
 
email:

tar.gz -> backup/domain.com/email/*

copy it to /etc/virtual/domain.com/ (change domain.com with your real domain name). Note you'll need to adjust file /etc/virtual/domain.com/passwd

ftp:

tar.gz -> backup/domain.com/ftp.passwd
 
Great, thank you.

However, I can't get to the original data anymore.
I do have from the reseller backup a backup/domain.com/email directory.
So that should do the trick.

Thanks!
 
Back
Top