Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    471
    Likes Received:
    4
    Trophy Points:
    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 :-

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

    Thank you !!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. InterServed

    InterServed Well-Known Member

    Joined:
    Jul 10, 2007
    Messages:
    263
    Likes Received:
    4
    Trophy Points:
    68
    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:
    471
    Likes Received:
    4
    Trophy Points:
    168
    Thank you so much :)

    I shall try that ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice