Sujet : Re: Copy a file from local to network preserving timestamp
De : lew.pitcher (at) *nospam* digitalfreehold.ca (Lew Pitcher)
Groupes : comp.os.linux.miscDate : 21. Aug 2024, 17:05:43
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va538n$3tmst$1@dont-email.me>
References : 1
User-Agent : Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
On Wed, 21 Aug 2024 17:25:52 +0200, ambaraba wrote:
I would like to copy a file
from srcdir [local HDD "UUID=5AAAA.. /mnt/srcdir ntfs-3g" in fstab]
to destdir [network share "//192.168.xx.xx /mnt/destdir ... cifs ..."
preserving the original creation date.
To summarize, you want to use Linux tools to copy a file from a (Windows)
NTFS directory to a (Windows-compatible) CIFS directory, preserving the
(Windows) "creation date" metadata.
While some Linux filesystems support "file creation date", most follow the
Unix metadata requirements and do not. Linux tools are very rarely built to
know about non-standard metadata, and don't adjust things like "creation
date". AFAIK, the Linux vfs (that mediates file accesses to the variety
of supported Linux filesystems) doesn't easily carry that metadata, nor
do the standard file metadata syscalls.
In all, you are looking for a very unique and very rare utility, and I
doubt that most general-purpose Unix or Linux file copy tools will satisfy
your need.
HTH
-- Lew Pitcher"In Skills We Trust"