Sujet : Re: Copy a file from local to network preserving timestamp
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.miscDate : 22. Aug 2024, 06:32:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va6igk$a1bk$1@dont-email.me>
References : 1
User-Agent : Pan/0.159 (Vovchansk; )
On Wed, 21 Aug 2024 17:25:52 +0200, ambaraba wrote:
I've tried
> cp -p /mnt/srcdir/FILE.jpg /mnt/destdir/FILE.jpg
> rsync -vuart /mnt/srcdir /mnt/destdir
> dd ... can't remember the options
I've also tried with "freefilesync"
Unfortunately the timestamp on the destination is not preserved :-(
cp and rsync should work. You can verify this by trying your same commands
between local volumes.
The fact that the commands don’t work on the file server sounds like the
fault of the file server.