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.

Can you * certain folders in a path with rsync exclude?

Discussion in 'Data Protection' started by DWHS.net, Aug 10, 2014.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    For example if I wanted to not back up a users email, can I go:

    daily/*/homedir/mail/*

    This would be in the exclude file.

    Or is there another way to not backup several paths by changing one catch all variable?

    I am trying to add backups and want it to restore fast, so not including small files like email will help this.

    I am rsyncing the /backup/cpbackup/daily/ files to another server.

    Also any other file types you can think of to include here besides the ones CPanel already has?

    I added:

    error_log
    *.log

    For example.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Thanks, I read that and noticed none of the excluded paths have more than one folder

    */.wysiwygPro_*

    For example the path above is only 1 folder, not sure if a rule or coincidence.

    I have this now: daily/*/homedir/application_backups/*

    Maybe this is correct for it? */application_backups/*

    Or just: application_backups/*

    Does it need the full path or just the folder before it?

    Thank you
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Sorry I guess the hundreds of thousands of dollars I have paid to CPanel isn't enough to get some help. My bad.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    So, I take it that thread was of no use to you?
     
Loading...
Similar Threads - certain folders path
  1. Karl1
    Replies:
    2
    Views:
    433

Share This Page