Sunday, 26 October 2014

Using script cPanel reseller account to cPanel root

Old account
========
Becoz of Reseller we have to take backup of each account individually.

After that

-----------

New server

==========
vi /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

vi sree.sh

for i in `cat /home/accounts.txt`;
do wget $i;
done

=============


>> ll
 You could see the backup files in /home






vi  /home/acc.txt

put the name of the backup files

Then

vi sree.sh

for i in `cat /home/acc.txt`;
do /scripts/restorepkg $i;
done

====================


No comments:

Post a Comment