Re: Date/time stamps on files copied via LanMan98



druck <news@xxxxxxxxxxxxxxxx> wrote:
No that isn't the case even when working locally with FAT filing
systems on the EEE. If you perform a copy from filer or command line
it will set the creation date to the current date. There is a flag on
the cp command to preserve creation dates, but it is only honored when
running as root.

Are you sure about the need to be root? The usual Unix behaviour is to
restamp copied files, but I use cp -a to copy attributes too. -a is
equivalent to -d -r -p. It may complain because it can't set the ownership
to be the same (FAT has no concept of ownership or group permissions)
but even if there are error messages the timestamps should be copied over.

Linux has no problem setting dates in the past: I have some Acorn internal
files on my website that came out of archives dated 1989 and they have 1989
dates on the server:
http://www.chiark.greenend.org.uk/~theom/riscos/docs/

That's on ext3, but I've never heard of other filesystems complaining.

Theo
.



Relevant Pages

  • Re: Date/time stamps on files copied via LanMan98
    ... If you perform a copy from filer or command line ... it will set the creation date to the current date. ... restamp copied files, but I use cp -a to copy attributes too. ... It may complain because it can't set the ownership ...
    (comp.sys.acorn.networking)
  • Re: Microsoft Word File and Properties Information.
    ... The "creation date", for example, proves nothing about when the ... command, not the date the material was written. ... There _may_ be a unique identifier in the document, ... Basically, for forensic or legal purposes, a Word document isn't worth ...
    (microsoft.public.word.docmanagement)
  • RE: wrong command
    ... It's possible to retrieve file permissions belonging to a rpm package: ... By mistake i run below command on root. ... It changed the ownership of all directories with their respective files ...
    (RedHat)
  • Re: idiot question about chown
    ... Interland tells me to change ownership I need to use the command ... I looked in my Linux book and didn't see a mention of vchown. ... Is it a standard command, or something Interland whipped up for use on ... I didn't think anyone used regular telnet anymore, ...
    (alt.linux)
  • Re: how can I use "find" command to locate new created file in a certain directory??
    ... Either track the file creation yourself inside your ... command you can sort out the files depending on their access date and / ... or modification/change date. ... -atime is access time ...
    (comp.sys.sun.admin)