The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sync all but few !!!

Discussion in 'General Discussion' started by furquan, Jul 5, 2011.

  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    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 !!
     
  2. InterServed

    InterServed Well-Known Member

    Joined:
    Jul 10, 2007
    Messages:
    255
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    DataCenter Provider
    Add exclude to your rsync :
    Code:
    rsync -avz -e ssh /home/ --exclude /home/user1/ --exclude /home/user2/ --exclude /home/Nuser/ root@ip_of_new_server:/home/
     
    #2 InterServed, Jul 5, 2011
    Last edited: Jul 5, 2011
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Thank you so much :)

    I shall try that ;)
     
Loading...

Share This Page