- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using tar to list backup date
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2002 09:26 PM
11-11-2002 09:26 PM
I would appreciate if someone can advise how to extract the last date from a tar backup tape.
the command
tar tv
will list all the files. I don't realy need to see the files but just the date.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2002 09:53 PM
11-11-2002 09:53 PM
SolutionAs 'tar' does not actually create a header from which the backup has been performed (like 'fbackup'), it is not actually possible to get an exact date.
You could however guesstimate by extracting a file list and viewing the contents of /tmp or /var/tmp These two areas do get files written to them all the time.
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2002 10:45 PM
11-11-2002 10:45 PM
Re: using tar to list backup date
I appreciate your quick support. Could you please provide me with an example.
This is very important because I mixed up the labels on two tape with the same date and I want to find out which is which.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2002 11:01 PM
11-11-2002 11:01 PM
Re: using tar to list backup date
# tar tvf /dev/rmt/0m >/tmp/tape.out
One good example of getting the date and time of a file other than something in /var or /var/tmp is
/etc/utmp
/var/adm/wtmp
/var/adm/syslog/syslog.log
If you can, I suggest you use 'fbackup'. It creates volume headers, it is far more flexible than 'tar' and can write more than 2Gb of data to tape. 'tar' cannot do these things.
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2002 11:23 PM
11-11-2002 11:23 PM
Re: using tar to list backup date
The only way is to do a tvf of the file you are trying to restore.
as Micheal suggested fbackup has those features
It uses this
/var/adm/fbackupfiles/dates
file to store the date of backup.
THus incremental backup's are possible using fbackup.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2002 11:58 PM
11-11-2002 11:58 PM
Re: using tar to list backup date
Go to the directory you want to tar...then "touch a file" and after that create your tar archive of the directoriy...
then you 'll have a file which will tell you the date
in a script you can do something like this
#Time stamp
temp="/dir/$(date +%d.%m.%y_%H:%M)"
touch $temp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2005 04:41 AM
02-24-2005 04:41 AM