Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Using script cPanel reseller account to cPanel root  (Read 2470 times)

0 Members and 1 Guest are viewing this topic.

nidhinjo

  • Guest
Using script cPanel reseller account to cPanel root
« on: March 28, 2018, 03:34:48 am »
1.) Old account
===========

>> First we need to take Backup of each account individually.
>> Once we have finished with the Backup creation, move to new server.

2.) New server
==========
Code: [Select]
vim /home/accounts.txt
>> list the information as below

http://IP/~accountname/public_html/backupname
http://IP/~accountname/public_html/backupname
http://IP/~accountname/public_html/backupname

Code: [Select]
a.) vim script.sh

Code: [Select]
for i in `cat /home/accounts.txt`;
do wget $i;
done

Code: [Select]
# ll
b.) once the process finished, you   could see the backup files in /home


Code: [Select]
vim  /home/acc.txt

put the name of the backup files

Then, follow the below steps and edit the script file,

Code: [Select]
vim script.sh
Code: [Select]
for i in `cat /home/acc.txt`;
do /scripts/restorepkg $i;
done

====================That's it==============================