0

SSHFS changes modification date (not access date) of server files on download(!). Is there an option/setting to prevent that?

The problems this causes include:

  • after the next download, you can't sort the files by date anymore.
  • when we backup to the server, every file will be transferred on every occasion (bc their dates are always different)
  • in the use-case of sharing updated files on the server: everything will be downloaded every occasion even if no-one uploaded anything

UPDATE: After changing operating systems and taking 2 weeks to restore modification dates from backups (making sure that actually-modified files don't get their date restored...), there are two machines remaining with which we can reproduce the behavior:

Server: Linux Mint 21.2, sshfs 3.7.1, fuse 3.10.5, fuse ki 7.31 fusermount3 3.10.5

Client: GhostBSD 14.2 (a modified FreeBSD 14.2-RELEASE-p1), sshfs 3.7.3, fuse 3.17.1, fuse ki 7.40, mount-fusefs 0.3.9-pre1

  • Download Command: cp -pr mnt/content/ local/content/
  • mount command: sshfs [email protected]:/home/a/server-dir mnt/

df -T Filesystem Type 1K-blocks Used Available Use% Mounted on tmpfs tmpfs 1618628 2160 1616468 1% /run /dev/sda5 ext3 435281408 433288172 1993236 100% / tmpfs tmpfs 8093124 4 8093120 1% /dev/shm tmpfs tmpfs 5120 4 5116 1% /run/lock /dev/sda1 vfat 98304 31835 66469 33% /boot/efi tmpfs tmpfs 1618624 104 1618520 1% /run/user/1000 /home/a/.Private ecryptfs 435281408 433288172 1993236 100% /home/a /dev/mapper/veracrypt1 ext3 391090108 368891012 2276168 100% /media/veracrypt1 

sshfs [email protected]:/media/notcrypted/ mnt/ cp mnt/file . that changes the server file's date 
1
  • Comments have been moved to chat; please do not continue the discussion here. Before posting a comment below this one, please review the purposes of comments. Comments that do not request clarification or suggest improvements usually belong as an answer, on Unix & Linux Meta, or in Unix & Linux Chat. Comments continuing discussion may be removed. Commented Jul 23 at 13:29

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.