Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I bought this DDS2 tape device and I'm now working on my backup script and I begun to wonder is "mt eof" absolutely necessary after every tar? Or what's the use of "mt eof"
example.
tape rewinded, erased and ready to roll
$ tar cv testdir1
$ tar cv testdir2
$ tar cv testdir3
mt status tells that file number is three. Good. I rewind the tape and let's say I want to restore testdir2.
$ mt fsf
$ mkdir restore; cd restore
$ tar xv
And we're done. Now if I have created "eof"'s after every tar I should have forward the tape using "mt fsf 2" command before "tar xv". That's not big thing but what's the point of "eof" in the first place?
You really only need to use eof to mark the end of each tape archive or tar in order to have multiple tar archives on a single tape. It's good practice.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.