Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    59

    Default Exclude dir on tar files

    Hi, how to exclude one dir on tar files?

    example:

    List off the files and dirs to tar:

    test/
    config/
    temp/
    picture.jpg
    doc.txt

    I need to tar all files, but not the dir test/ how to i make this with the tar command?

    I testing with the option --exclude=test but on this mode, all files and dirs named test are excluded from tar... and i need to exclude only exact path(/backups)

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,165
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Try this thread for some help there.

    http://forums.cpanel.net/showthread....backup-exclude

Similar Threads & Tags
Similar threads

  1. Webalizer how to exclude files types ??
    By dotcom22 in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 07-06-2009, 03:38 PM
  2. Backup all accounts, exclude home dir of some?
    By Karabaja in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-29-2009, 05:01 PM
  3. .tar.gz files corrupt
    By tsediting in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-21-2008, 12:20 PM
  4. how to split tar files?
    By rajesh_ in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-29-2007, 09:40 PM
  5. Exclude mp3 files from backups?
    By drose25 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-21-2006, 03:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube