usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.53k stars 591 forks source link

Backup restoring weird behavior #246

Closed franciscopaniskaseker closed 4 years ago

franciscopaniskaseker commented 4 years ago

I did a backup of some accounts on server 1 and recovered on server 2. They are using exactly same environment (centos, cyberpanel version etc).

What I saw?

I will recreate everything manually due to urgence.

For now I can not rely on cyberpanel backup system.

https://cyberpanel.net/docs/1-backup-restore/ says nothing about that. https://docs.cyberpanel.net/doku.php?id=cli has no cli command to do that.

usmannasir commented 4 years ago

With few points I agree with you, however some need calrification.

These above two points I don't know what you are saying, need some clarification. Because no users are created during site restore (except linux users, linux users are needed for PHPSuexec and they are not directly connected to CyberPanel login)

You must have received an error message during restore. Recently there was a bug in restore because of additional mail domain creation, which is already fixed.

Again I am not clear

Yes forwardings are not included in backup.

DNS zones are indeed migrated, but since your backup restore is not success you will not see them, please try to upgrade and retry to restore.

franciscopaniskaseker commented 4 years ago

Agree, right now restored websites are assigned to default admin user, I will take care of this in next releases.

excellent.

These above two points I don't know what you are saying, need some clarification. Because no users are created during site restore (except linux users, linux users are needed for PHPSuexec and they are not directly connected to CyberPanel login)

At cyberpanel pesperctive, the websites recovered will be assigned to default admin user, but at Linux side, every website is created with own user (linux user). So what I said is... websites at Linux level are created, but no users on cyberpanel perspective... but you explained why: everything go to admin user.

You must have received an error message during restore. Recently there was a bug in restore because of additional mail domain creation, which is already fixed.

They are created without error. I will update the CP, but is a very fresh installation.

if I click in "modify user" I can not see the new users on server 2 (NOT ok!) Again I am not clear

As you explained, all websites go under admin user... due any CP users created on recover.

Yes forwardings are not included in backup.

Seems something really simple to do. I think it is important... if I want migrate my CP, I want recover everything as old server. I know you know that.

DNS zones are indeed migrated, but since your backup restore is not success you will not see them, please try to upgrade and retry to restore.

I will try.

usmannasir commented 4 years ago

thanks for the update. I will keep this thread open unless I implement user restore.

usmannasir commented 4 years ago

Added https://github.com/usmannasir/cyberpanel/commit/7a7f99f00f2389a9cdd46b658a06fe9b9524887b

Will come when v1.9.5 released.