LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-28-2011, 04:13 AM   #1
jnai
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
When did I backup data to tape (cpio, Red Hat Enterprise Linux ES release 4)?


How do I find out the exact date and time I backup data files to tape by using 'cpio' command on Red Hat Enterprise Linux ES release 4 server, please. I have a number of tape cartridges which were not labeled properly so now I do not know when I did the backup.
--
 
Old 12-28-2011, 11:14 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,610

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
You have my sympathy. Alas, there is nothing in a cpio archive to indicate the time the archive was created. About all you can do is make a listing of the archive contents ("cpio -itv") and process the output to find the most recent date therein. Even that is not going to be 100% reliable because it is always possible that someone marked a file with a time stamp far in the future. If these are complete system backups, perhaps you could use the time stamp of the newest file in /var/log as a surrogate for the creation time of the archive.

And, I just realized that only the date and year (no time) are shown for time stamps not within the past year. You might have to write your own program to parse the (simple) cpio archive format if you need complete time stamps for older files.

Last edited by rknichols; 12-28-2011 at 11:25 AM. Reason: And, I just realized...
 
1 members found this post helpful.
Old 12-28-2011, 09:06 PM   #3
jnai
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks very much for your help.

Sorry for keep continue asking; alternative to "cpio" commands, I'm thinking about "tape tool" commands which we could use to find out the date and time when the tape cartridge was last used/backup. Are they available (the said "tape tool" commands)?
--
 
Old 12-28-2011, 11:54 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,610

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
You would have to ask someone with knowledge about the exact type of tape drive and cartridge you are using. I don't know of any tape drive that embeds such information in its data format, but I suppose it's possible (if the drive had some way to learn the current date and time, of course).
 
1 members found this post helpful.
Old 12-29-2011, 12:15 AM   #5
jnai
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks again rknichols; I will continue to find out to see if it is available.
--
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat Enterprise Linux ES release 4 update 1 shibu_sp Linux - Newbie 1 03-04-2009 03:34 AM
Red Hat Enterprise Linux 5 Release Date? keysorsoze Red Hat 5 03-01-2007 09:15 PM
what last version/release of Red Hat enterprise Linux AS? xcore_on Linux - Newbie 1 05-11-2006 05:28 AM


All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration