Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236019

Re: Creation vs Modification timestamps

From deloptes <deloptes@gmail.com>
Newsgroups linux.debian.user
Subject Re: Creation vs Modification timestamps
Date 2021-06-12 11:00 +0200
Message-ID <Cp7EJ-586-5@gated-at.bofh.it> (permalink)
References <Cp3rs-2FD-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


hobie of RMN wrote:

> Why that's happening is a separate issue and one that I do need to find
> the answer to, but my question today is this:  Is it possible to find the
> original creation date-and-time on these files, or is it simply "gone with
> the wind" at this point?

I would say it is the root of the problem - share how you copy the files
If you use cp it is clearly wrong unless you use some of the options to
preserve the original time stamp. How it was working "for years" - I do not
know.

I use tar


$ ls -al TODO
-rw-r--r-- 1 user user 12475 Nov 22  2020 TODO

$ cp TODO /tmp/
ls -al /tmp/TODO
-rw-r--r-- 1 user user 12475 Jun 12 10:49 /tmp/TODO


$ tar cf - TODO | (cd /tmp/; tar xvf -)
TODO

$ ls -al /tmp/TODO
-rw-r--r-- 1 user user 12475 Nov 22  2020 /tmp/TODO

but if you use cp -a it has same effect

$ cp -a TODO /tmp/
$ ls -al /tmp/TODO
-rw-r--r-- 1 user user 12475 Nov 22  2020 /tmp/TODO

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Creation vs Modification timestamps "hobie of RMN" <hobie@rumormillnews.com> - 2021-06-12 06:30 +0200
  Re: Creation vs Modification timestamps Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-06-12 08:50 +0200
  Re: Creation vs Modification timestamps deloptes <deloptes@gmail.com> - 2021-06-12 11:00 +0200
  Re: Creation vs Modification timestamps Dan Ritter <dsr@randomstring.org> - 2021-06-12 12:50 +0200
    Re: Creation vs Modification timestamps Greg Wooledge <greg@wooledge.org> - 2021-06-12 15:10 +0200

csiph-web