A
A
Alpha_Fire2022-01-28 09:46:36
linux
Alpha_Fire, 2022-01-28 09:46:36

Why do some files change the modification date when copying via SMB protocol (Linux, Dolphin)?

I copy files from Windows to Linux over a network via SMB using Dolphin, but after copying, the modification date of ~ 10-20% of the files is overwritten by the copy date. One file completely flew into the future. In general, I don’t see any system here yet, it feels like it’s just random.

The date replacement seems to be stable, those files always have the original date when copying, while others always change.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
pfg21, 2022-01-28
@pfg21

use rsync, Luke !!

A
Alfieros, 2022-01-28
@mrsexy

On the server is the date of receipt of your content. If it is old, then it is updated to the current date according to the server date. But in general, something interesting. The recording date is always saved, only the update is updated if the files are overwritten!

H
hint000, 2022-01-28
@hint000

The file has four time attributes:

  • Last write time (last write time)
  • Creation time (creation time)
  • Last access time (last access time)
  • Change time

If the contents of the file are not changed, but the metadata (file attributes, access rights) are changed, then the Change time will change.
Look at the attributes of "good" and "bad" files and compare, something is different there. Different file systems support different subsets of attributes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question