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.

Exclude function On rsync command

Discussion in 'General Discussion' started by its_joy, Dec 31, 2007.

  1. its_joy

    its_joy Well-Known Member

    Joined:
    Dec 29, 2007
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    one of our server have backup drive on which do take monthly and weekly backups.

    We do use rsync command for it.

    Most of domains have bad folders and files which are particular.

    So we would like to know using "rsync" command how can I exclude multiple files and folders.

    Thank you
    its_joy
     
  2. bornonline

    bornonline Well-Known Member

    Joined:
    Nov 19, 2004
    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    I use the exclude like this for my setup.

    rsync --update --delete -avz -e ssh --exclude=/var/empty --exclude=/etc/csf/File/Type
     
Loading...

Share This Page