Linux / UNIX: tar Command Stay In Local / File System When Creating Archive

Posted on in Categories , , , , , last updated December 5, 2009

I‘d like to make / file system backup but the problem is there are other file systems mounted under / such as:

/mnt/cdrom
/mnt/nfs
/iscsi
/boot
/var

I’d like to skip all other file systems mounted at / and only make backup of local / and not /boot, /var, /iscsi, and /mnt/cdrom etc. How do I force tar to use a single file system under Linux / UNIX / BSD operating systems?

Tar Extract a Single File(s) From a Large Tarball

Posted on in Categories , , , , , , , , , , , , , last updated December 6, 2008

Q. I’ve couple of large tarballs such as www.tar and images.tar. Is it possible to extract a single file or a list of files from a large tarball such as images.tar instead of extracting the entire tarball? How do I extract specific files under Linux / UNIX operating systems?