We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
SK-cPanel-Importer | Restore cPanel Backup on Vesta
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
HIkoramo 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
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
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
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?
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?
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
Can you tellme more about problem ?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 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 ?
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
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 ?
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 ?
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
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
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
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.gzkoramo 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
Is the same backup.
Maybe you can unzip your backup, delete sensible information and sendme private message to check your backup
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
Some bug fixed in 0.4.5 ( changes are on same downloader 0.4 )
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
I was missing rsync on my server and skamasle was very helpful in finding it.
Thank you very much
Thank you very much
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
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.
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
Re: SK-cPanel-Importer | Restore cPanel Backup on Vesta
hispidweb 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
this was fixed, download and run script again :)