LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2008, 01:10 PM   #1
uhcafigdc
Member
 
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39

Rep: Reputation: 15
Question Reverting back to older timestamps? Is it possible?


I am using Debian Testing as samba file server to share files to windows clients. Previously, "date accessed" stamps were helpful in cleaning up the folders on the file server. If a file hasn't been accessed in 3 months, I can move it to an archive folder or something.

I recently installed Unison and used it to keep the file server in sync with another file server. Cool.
Unison touched every file on the file server and changed its "date accessed" time stamp to the current date. Oops.

Is there a way to change back to the time stamps before this happened?
 
Old 11-18-2008, 06:01 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Short answer: NO.
Once you do touch on a file, its timestamp is changed. That's it, unless you have a backup. And that is the way it should be.
Sorry.
 
Old 11-18-2008, 07:58 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,419

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
You could use the mtime instead.
 
Old 11-18-2008, 08:19 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
You could use the mtime instead.
Good point.
I'll remember that.
I learn something new every day. Thank you!
(Hope you find that job soon)

Last edited by tredegar; 11-18-2008 at 08:22 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverting back after install chrisbhall Linux - Newbie 2 01-06-2005 09:19 AM
Suse 9.1 reverting back to XFree 3.9.x from CD Mal_Function Linux - Newbie 3 06-08-2004 09:09 AM
fatab keeps Reverting Back to the orginal. oseespcs Fedora 4 04-20-2004 02:36 PM
Reverting back to XFree86 3.3.6 rdjones Slackware 1 10-21-2003 01:57 AM
Reverting back the defaul Ownerships anand Linux - Security 1 05-04-2001 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 PM.

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
Open Source Consulting | Domain Registration