Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section 3rd Party Software
  • Search

SK-cPanel-Importer | Restore cPanel Backup on Vesta

Section with additional software for Vesta
Post Reply
  • Print view
Advanced search
95 posts
  • Page 4 of 10
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 10
  • Next
skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

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

Post by skamasle » Thu May 12, 2016 8:47 pm

koramo wrote:Hello
I used the automatic cpanel backups in the root as well as the bash script.
during the run I get these:

Code: Select all

 bash sk_importer_beta0.4.sh kosher*******re.tar.gz
Checking provided file...
OK - Gziped File
Creating tmp..
Extracting backup...
Backup extracted whitout errors...
Access tmp directory /root/sk_tmp/kosher*******re
Get prefix...
I like your prefix, start working
Remove and move some files..
Get user: kosherfo
/usr/local/vesta/bin/v-list-users: line 58: /data/users/admin/user.conf: No such                                                                                                                                                              file or directory
Generate password aleatory password for kosherfo and create Vestacp Account ...
/usr/local/vesta/bin/v-add-user: line 21: /func/main.sh: No such file or directo                                                                                                                                                             ry
/usr/local/vesta/bin/v-add-user: line 22: /conf/vesta.conf: No such file or dire                                                                                                                                                             ctory
/usr/local/vesta/bin/v-add-user: line 38: check_args: command not found
/usr/local/vesta/bin/v-add-user: line 39: validate_format: command not found
/usr/local/vesta/bin/v-add-user: line 41: validate_format: command not found
/usr/local/vesta/bin/v-add-user: line 44: is_password_valid: command not found
/usr/local/vesta/bin/v-add-user: line 45: is_package_valid: command not found
cat: /data/packages/default.pkg: No such file or directory
/usr/local/vesta/bin/v-add-user: line 61: check_result: command not found
/usr/local/vesta/bin/v-add-user: line 123: /data/queue/disk.pipe: No such file o                                                                                                                                                             r directory
/usr/local/vesta/bin/v-add-user: line 140: /v-list-user-ips: No such file or dir                                                                                                                                                             ectory
/usr/local/vesta/bin/v-add-user: line 185: gen_password: command not found
/usr/local/vesta/bin/v-add-user: line 195: increase_user_value: command not foun                                                                                                                                                             d
/usr/local/vesta/bin/v-add-user: line 209: log_history: command not found
/usr/local/vesta/bin/v-add-user: line 210: log_event: command not found
Get databases
Fix some files
Working whit db...
Get mysql passwords..
Start Importing Mysql Databases and Users...
sk_importer_beta0.4.sh: line 212: /usr/local/vesta/data/users/kosherfo/db.conf:                                                                                                                                                              No such file or directory
Importing database kosherfo_wp ...
1 databases imported!
sed: can't read /usr/local/vesta/data/users/kosherfo/user.conf: No such file or                                                                                                                                                              directory
Start working whit web sites / files / domains / subdomains
Converting addons domains, subdomains and some orther fun
Start restoring domains
/usr/local/vesta/bin/v-add-domain: line 19: /func/main.sh: No such file or direc                                                                                                                                                             tory
/usr/local/vesta/bin/v-add-domain: line 20: /func/ip.sh: No such file or directo                                                                                                                                                             ry
/usr/local/vesta/bin/v-add-domain: line 21: /conf/vesta.conf: No such file or di                                                                                                                                                             rectory
/usr/local/vesta/bin/v-add-domain: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-domain: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-domain: line 32: is_object_valid: command not found
/usr/local/vesta/bin/v-add-domain: line 33: is_object_unsuspended: command not f                                                                                                                                                             ound
/usr/local/vesta/bin/v-add-domain: line 42: get_user_ip: command not found
Error: no avaiable IP address
/usr/local/vesta/bin/v-add-domain: line 45: log_event: command not found
Restore main domain: kosher*******e.net
chown: cannot access `/home/kosherfo/web/kosher*******e.net/public_html': No su                                                                                                                                                             ch file or directory
chmod: cannot access `/home/kosherfo/web/kosher*******e.net/public_html': No su                                                                                                                                                             ch file or directory
Start Restoring Mails
Create and restore mail account: office@kosher*******e.net
sk_importer_beta0.4.sh: line 351: v-add-mail-account: command not found
mv: cannot move `kosher*******e.net/office' to `/home/kosherfo/mail/kosher*******e.net': No such file or directory
chown: cannot access `/home/kosherfo/mail/kosher*******e.net': No such file or                                                                                                                                                              directory
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, cant restore yet shadow passwords to vesta format ( md5 )
Check your new passwords runing: cat /root/sk_mail_password_2016-05-12-15:56:49
HI

Is recently installed vesta ?

You reboot your server after install ?

If not reboot your server and try again.

I will add warning on next realese for this but you can check this bug for more information https://bugs.vestacp.com/issues/138
Top

koramo
Posts: 7
Joined: Tue May 27, 2014 4:18 am

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

Post by koramo » Fri May 13, 2016 5:57 pm

Thank you.
My mistake.
The script extracted the files, imported the db and so on.
The only thing missing is the website files (nothing found in the proper directory).

PS: Tried already with 3 backups. Too bad. Where am I wrong?
Top

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

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

Post by skamasle » Fri May 13, 2016 7:17 pm

koramo wrote:Thank you.
My mistake.
The script extracted the files, imported the db and so on.
The only thing missing is the website files (nothing found in the proper directory).

PS: Tried already with 3 backups. Too bad. Where am I wrong?
Can you tellme more about problem ?

Can you showme structure of your backup ?

Normally cpanel have main domain on public_html and orther domains in public_html/domaindir

Script take all data and copy it to vestacp public_html for each domain.

I use my script whit some diferent cpanel instalations, whit more than 10 domains on cpanel account and some subdomains and working just fine.

Maybe you not have standard backup or maybe you alredy have domains added on vestacp ?
Top

koramo
Posts: 7
Joined: Tue May 27, 2014 4:18 am

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

Post by koramo » Fri May 13, 2016 7:23 pm

The backup is the regular ones.

I used in fact 2 types:
a) generated using the Cpanel interface, the Backup menu
b) the automatic cpanel backups automatically generated.


how do you get you backups?
1) using the backup, 2) the backup wizard 3) the automatic backups ?

Ps: your script is in the server root (as the backup files). Is there any rule ?
Top

koramo
Posts: 7
Joined: Tue May 27, 2014 4:18 am

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

Post by koramo » Fri May 13, 2016 7:28 pm

The patch in sk_tmp (and obviously in the backup) to the public_html is:

Code: Select all

/root/sk_tmp/myuser******/homedir/public_html
Top

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

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

Post by skamasle » Sat May 14, 2016 8:41 am

koramo wrote:The patch in sk_tmp (and obviously in the backup) to the public_html is:

Code: Select all

/root/sk_tmp/myuser******/homedir/public_html
Backup will working fine if you generate backup from cpanel, or from whm, automatic or manully, cpmove-user.tar.gz, backup-user.xxx.tar.gz, user.tar.gz

Is the same backup.

Maybe you can unzip your backup, delete sensible information and sendme private message to check your backup
Top

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

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

Post by skamasle » Sat May 28, 2016 10:38 am

Some bug fixed in 0.4.5 ( changes are on same downloader 0.4 )
Top

koramo
Posts: 7
Joined: Tue May 27, 2014 4:18 am

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

Post by koramo » Wed Jun 01, 2016 9:32 pm

I was missing rsync on my server and skamasle was very helpful in finding it.
Thank you very much
Top

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

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

Post by spidweb » Tue Sep 20, 2016 12:32 am

Hello.

I'm using vesta panel and I'm really enjoying it. I still can not restore a backup cpanel. I have followed all the guidelines and the restoration stops in creating the account. Already I researched and tried everything and did not think how to solve the problem. Please could someone help? Sorry about my English.

Code: Select all

Get user: xxxxxxxxxx
Generate random password for xxxxxxxxxx and create Vestacp Account ...
sk_importer_beta0.4.sh: line 113: gen_password: command not found
Error: invalid email format :: default
Stop Working... Cant create user...if is fresh install of vestacp try reboot or reopen session check bug https://bugs.vestacp.com/issues/138
Top

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

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

Post by skamasle » Wed Sep 21, 2016 1:49 pm

spidweb wrote:Hello.

I'm using vesta panel and I'm really enjoying it. I still can not restore a backup cpanel. I have followed all the guidelines and the restoration stops in creating the account. Already I researched and tried everything and did not think how to solve the problem. Please could someone help? Sorry about my English.

Code: Select all

Get user: xxxxxxxxxx
Generate random password for xxxxxxxxxx and create Vestacp Account ...
sk_importer_beta0.4.sh: line 113: gen_password: command not found
Error: invalid email format :: default
Stop Working... Cant create user...if is fresh install of vestacp try reboot or reopen session check bug https://bugs.vestacp.com/issues/138
hi

this was fixed, download and run script again :)
Top


Post Reply
  • Print view

95 posts
  • Page 4 of 10
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 10
  • Next

Return to “3rd Party Software”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password