Sometimes you might want to routinely backup certain files or directories that are on a mass storage device (RAID), but you don't want to backup the entire RAID. You can do this by using the tar command's exclude option. You probably want to exclude the exclude and tarball files. Here's an example of its use.
First I create the exclude file and give it an arbitrary name, filesDir_to_exclude
#cat > filesDir_to_exclude
filesDir_to_exclude
esofthub.tar
temp1
temp2
temp2
junk
large_directory
larger_directory
massive_archive_directory
...
Control d
#cd /raid
#tar cvfpX esofthub.tar filesDir_to_exclude *
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment