Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Unix >> How to use tar to backup with exclusion

1. Assume the following directory tree needs to be backed up /temp | -- dir1 -- dir2 -- dir3 2. Assume /temp/dir2 and /temp/dir3 is to be excluded Method 1 ======== # tar cvf /dev/st0 --exclude /temp/dir2 --exclude /temp/dir3 /temp/* Method 2 ======== # tar cvf /dev/st0 -X ./backup_excl.txt /temp/* where ./backup_excl.txt contains:- /temp/dir1 /temp/dir2 Method 3 ======== # tar cvfX /dev/st0 ./backup_excl.txt /temp/*
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]