SK-cPanel-Importer | Restore cPanel Backup on Vesta Topic is solved

Section with additional software for Vesta
spidweb
Posts: 4
Joined: Tue Sep 20, 2016 12:22 am

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby spidweb » Thu Sep 22, 2016 2:12 pm

Thanks for the response and quick solution.

I did several tests with different backups.

I ran the script and it worked perfectly EXCEPT the following:

It did not restore the files from the public_html folder

DB: OK
EMAIL: OK
USER: OK
DOMAIN: OK
Public_html FILES: NO (empty)

I'm looking forward for the solution because I have multiple cPanel accounts to restore.

Congratulations for the excellent work.

Thank you.

Carlos

Code: Select all


[root@servidor12 ~]# bash sk_importer_beta0.4.sh backup-9.22.2016_13-38-35_xxxxxxxxxxxx.tar.gz
Checking provided file...
OK - Gziped File
Creating tmp..
Extracting backup...
Backup extracted whitout errors...
Access tmp directory /root/sk_tmp/backup-9.22.2016_13-38-35_xxxxxxxxxxxx
Get prefix...
I like your prefix, start working
Remove and move some files..
Get user: xxxxxxxxxxxx
Generate random password for xxxxxxxxxxxx and create Vestacp Account ...
Get databases
Fix some files
Working whit db...
Get mysql passwords..
Start Importing Mysql Databases and Users...
Importing database xxxxxxxxxxxx_shopwpress ...
1 databases imported!
Start working whit web sites / files / domains / subdomains
Converting addons domains, subdomains and some orther fun
Start restoring domains
Restore main domain: xxxxxxxxxxxx.com
Start Restoring Mailsiles
Create and restore mail account: contact@xxxxxxxxxxxx.com
Create and restore mail account: hostmasterxxxxxxxxxxxx.com
Create and restore mail account: support@xxxxxxxxxxxx.com
Create and restore mail account: sales@xxxxxxxxxxxx.com
All mail accounts restored
Cant restore crons yet
Remove tmp files
##############################
cPanel Backup restored
Review your content and report any fail
I reset mail password not posible restore it yet.
Check your new passwords runing: cat /root/sk_mail_password_xxxxxxxxxxxx-2016-09-22
##############################
[root@servidor12 ~]# ^C
[root@servidor12 ~]# cat /root/sk_mail_password_xxxxxxxxxxxx-2016-09-22
contact@xxxxxxxxxxxx.com | vRnEXXXBBy
hostmasterxxxxxxxxxxxx.com | CHXXXb4Kkn
support@xxxxxxxxxxxx.com | ZNLXXXWuDN
sales@xxxxxxxxxxxx.com | 20wXXXOqeN
[root@servidor12 ~]#

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby skamasle » Thu Sep 22, 2016 6:16 pm

I think you miss rsync ?

Is rsync installed ?

Or your backup have special path for home dir files.

spidweb
Posts: 4
Joined: Tue Sep 20, 2016 12:22 am

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby spidweb » Thu Sep 22, 2016 9:24 pm

Hello.

I do not rsync installed on the original server or in my vestacp

It also has no special path to homedir folder. It is a default full cpanel backup.

userxxxxxxxxxxxx/homedir/public_html

Thank you

Carlos

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby skamasle » Fri Sep 23, 2016 1:57 pm

spidweb wrote:Hello.

I do not rsync installed on the original server or in my vestacp

It also has no special path to homedir folder. It is a default full cpanel backup.

userxxxxxxxxxxxx/homedir/public_html

Thank you

Carlos


Install rsync in vestacp server and it should work

Just

yum install rsync

or

apt-get install rsync

spidweb
Posts: 4
Joined: Tue Sep 20, 2016 12:22 am

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby spidweb » Fri Sep 23, 2016 6:24 pm

Resolved.

It worked

Thank you.

fishisntud
Posts: 3
Joined: Sat Dec 03, 2016 3:29 am

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby fishisntud » Sat Dec 03, 2016 3:33 am

Please assist I'm using Ubuntu and cant understand why the $ directory errors Please help

Code: Select all

Checking provided file...
OK - Gziped File
Creating tmp..
Extracting backup...
Backup extracted whitout errors...
Access tmp directory /root/sk_tmp/backup-12.2.2016_17-49-10_xxxxxx
Get prefix...
I like your prefix, start working
Remove and move some files..
Get user: xxxxxx
/usr/local/vesta/bin/v-list-users: line 93: /data/users/admin/user.conf: No such file or directory
Generate random password for xxxxxx and create Vestacp Account ...
/usr/local/vesta/bin/v-add-user: line 21: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user: line 22: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user: line 36: check_args: command not found
/usr/local/vesta/bin/v-add-user: line 37: is_format_valid: command not found
/usr/local/vesta/bin/v-add-user: line 39: is_format_valid: command not found
/usr/local/vesta/bin/v-add-user: line 42: is_password_valid: command not found
/usr/local/vesta/bin/v-add-user: line 43: is_package_valid: command not found
cat: /data/packages/default.pkg: No such file or directory
useradd: invalid shell '# /etc/shells: valid login shells'
/usr/local/vesta/bin/v-add-user: line 59: check_result: command not found
chpasswd: (user xxxxxx) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user xxxxxx) password not changed
mkdir: cannot create directory \u2018/xxxxxx/conf\u2019: No such file or directory
chmod: cannot access '/xxxxxx': No such file or directory
chattr: No such file or directory while trying to stat /xxxxxx/conf
/usr/local/vesta/bin/v-add-user: line 122: /data/queue/disk.pipe: No such file or directory
/usr/local/vesta/bin/v-add-user: line 143: /v-list-user-ips: No such file or directory
/usr/local/vesta/bin/v-add-user: line 188: generate_password: command not found
/usr/local/vesta/bin/v-add-user: line 198: increase_user_value: command not found
/usr/local/vesta/bin/v-add-user: line 212: log_history: command not found
/usr/local/vesta/bin/v-add-user: line 213: log_event: command not found
Stop Working... Cant create user...if is fresh install of vestacp try reboot or reopen session check bug https://bugs.vestacp.com/issues/138

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby skamasle » Sat Dec 03, 2016 9:32 am

Is resently installed vesta ?

You reboot your server ?

Is ubuntu 16 ?

Maybe not work in ubuntu 16 ( mysql 5.7 ) not adapted, but I not test yet there is a bugs in vesta / ubuntu 16 / mysql 5.7

fishisntud
Posts: 3
Joined: Sat Dec 03, 2016 3:29 am

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby fishisntud » Sat Dec 03, 2016 4:01 pm

Ubuntu 16, restarted server after install. When the importer script runs vesta cp files can't find $vesta/ directorys

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby skamasle » Sat Dec 03, 2016 7:29 pm

fishisntud wrote:Ubuntu 16, restarted server after install. When the importer script runs vesta cp files can't find $vesta/ directorys



I need test it in ubuntu 16, as vesta not working fine in ubuntu 16.x and I not test script in that version yet, but I supose than script is not compatible whit ubuntu 16 / mysql 5.7 like vesta is not compatible whit mysql 5.7

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta

Postby skamasle » Sat Dec 03, 2016 8:53 pm

I can confirm all working in ubuntu 16

But you need add this

PATH=/usr/local/vesta/bin:$PATH

in your /root/.profile

And then load it.

Script working in ubuntu 16 but not in mysql 5.7 so it not restore mysql user passwords yet so is not prepared

Also afected by changes in mysql 5.7 read this-> viewtopic.php?f=20&p=53622#p53622


Return to “3rd Party Software”



Who is online

Users browsing this forum: No registered users and 3 guests