geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips
 parent


Re: HOWTO: Backup files with tar
by Shawn on Wednesday July 16, @12:15PM
Is it possible to exclude directories while 'taring' I would like to tar my entire /home directory with many user directories and exclude one of those directories. I have been using tar and ssh together to back up a 40G /home partition onto a separate remote machine with a removable harddrive of 20G. Yesterday the gzipped tarball finally made it over the 20G mark. ther is one directory /home/unwanted_dir that is 8G that I don't need to back up. Shawn

Related Links
  • Articles on Backup and Restore
  • Also by Shawn
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: HOWTO: Backup files with tar
    by John McFarlane on Wednesday August 20, @12:44PM
    yes, you can use --exclude here is a quick example: tar pzcvf /usr/_usr.tar.gz --exclude /usr/_usr.tar.gz /usr
    [ Add a Reply to this ]
    Re: HOWTO: Backup files with tar
    by Gary M on Thursday January 27, @10:35AM
    tar cf tarballname /home --exclude "/home/somedir" (most of us were human when we created these programs, like tar, so we used mostly common sense commands - also we knew how to spell most of them -, especially in the options/flags)
    [ Add a Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]