- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TAR command setting file modified 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
09-01-2005 08:01 PM
09-01-2005 08:01 PM
TAR command setting file modified date
I'm trying to use the 'find
I have two HP UX11i systems here, one is running a slightly more recent update.
On the first machine it works fine.
On the second machine, I am finding that my daily TAR backup of the directory in question is modifying the 'modified time' of the files, so the -mtime +
My tar command in my backup script it:
cd /
tar -cf /dev/rmt/0mn
It's the SAME command on both boxes, on one box it modifies the time on the other it doesn't.
So, is there an option for TAR which will instruct it to specifically NOT modify the date/time stamp on the files which it is backing up?
This is most annoying...
Any help appreciated.
-John O'Neill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 08:13 PM
09-01-2005 08:13 PM
Re: TAR command setting file modified date
Can you do sample work on maching with problem as,
cd /tmp
touch 200312010100 file.1
touch 200312010200 file.2
check ls -l file.*
tar -cvf test.tar file.*
check ls -l file.*
post the both.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 04:12 AM
09-02-2005 04:12 AM
Re: TAR command setting file modified date
I'm thinking it is a) a bug, or b) something else in your script is touching those files.
do a
what `which tar`
on both machines and compare the versions please, and tell us the results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 04:13 AM
09-02-2005 04:13 AM
Re: TAR command setting file modified date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2005 04:20 AM
09-02-2005 04:20 AM
Re: TAR command setting file modified date
It seems to me I remember that there used to be a note in the man page for find to the effect that running the find command affected the access? time of the files it traversed. Check your versions of find to see if one has had patches applied:
what /usr/bin/find
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 12:17 PM
09-04-2005 12:17 PM
Re: TAR command setting file modified date
Well... here the result from our live machine.
22183 what /usr/bin/find
/usr/bin/find:
$Revision: B.11.11_LR
Fri Oct 27 00:57:17 PDT 2000 $
That's it, that's all it says.
Here's the result from our dev/dr machine.
$ what /usr/bin/find
/usr/bin/find:
find.c $Date: 2002/02/05 22:05:26 $Revision: r11.11/2 PATCH_11.11 (PHCO_25905)
funcs.c $Date: 2002/02/09 04:05:22 $Revision: r11.11/2 PATCH_11.11 (PHCO_25905)
$Revision: @(#) find CUP11.11_BL2002_0213_2 PATCH_11.11 PHCO_25905
Wed Feb 13 07:05:23 PST 2002 $
The DEV machine seems to return more up to date info than the live machine.
I have to admit, I'm begining to loose confidence in the HP UX Platform with each passing month.
Any advice is appreciated, I'll speak to our local HP re-seller who we deal with quite often and get someone out onsite to assist.
Thanks all, any further info appreciated, allocating points now.
-John O'Neill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 01:34 PM
09-04-2005 01:34 PM
Re: TAR command setting file modified date
Now if the actual timestamp reported by ll is unchanged then it would point back to find as the problem. -mtime is creation or content modification time. -atime is much more volatile. Any backup will change the access time all files and directories.
In either case, I would review your patch strategy since the production machine may be more than 2 years out of date. Like any opsystem, patche bundles are required every 3-6 months.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2005 02:29 PM
09-04-2005 02:29 PM
Re: TAR command setting file modified date
Thanks.
I've got a request in to get our patches on the prod box sorted out. When it was recently rebuilt, the CD's the HP rep used to install the operating system were dated mid to late 2004.
I'll let you know how we go.
Ideally I want to patch every quarter for patches that are known to be good and have been live for 120 days.
However trying to download patch bundles from the website is very difficult, downloads fail all the time.
-John O'Neill