furquan

Well-Known Member
Jul 27, 2002
473
4
168
Hello :

I need to sync all the accounts from my OLD server to the NEW server after server migration. But there are a few accounts that i need to omit.

Here is the script i use to sycn the OLD with the NEW :-

On the old server:
rsync -avz -e ssh /home/* [email protected]_of_new_server:/home/

On the new server:
for i in `cat /var/cpanel/users/`; do chown -R $i:$i /home/$i; done
/scripts/chownpublichtmls
chown $i:nobody /home/*/public_html/
/scripts/mailperm
HOW can i edit this so that i can omit a few accounts from the OLD server ?

Thank you !!
 

InterServed

Well-Known Member
Jul 10, 2007
268
14
68
cPanel Access Level
DataCenter Provider
Hello :

I need to sync all the accounts from my OLD server to the NEW server after server migration. But there are a few accounts that i need to omit.

Here is the script i use to sycn the OLD with the NEW :-



HOW can i edit this so that i can omit a few accounts from the OLD server ?

Thank you !!
Add exclude to your rsync :
Code:
rsync -avz -e ssh /home/ --exclude /home/user1/ --exclude /home/user2/ --exclude /home/Nuser/ [email protected]_of_new_server:/home/
 
Last edited:

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Thank you so much :)

I shall try that ;)