Sujet : Re: Copy a file from local to network preserving timestamp
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.miscDate : 21. Aug 2024, 16:40:48
Autres entêtes
Organisation : A little, after lunch
Message-ID : <va51q0$3tq54$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 21/08/2024 16:25, 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 ..." in fstab]
preserving the original creation date.
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 :-(
Is it there a way to
copy a file (many files) from local to network share
preserving timestamp ?
I'm considering "timeshift" but honestly ...
THANKS for any help
rsync copies my date info???
-- “when things get difficult you just have to lie”― Jean Claud Jüncker