Need option to prevent SSHFS from changing server's file modification date on download(!)
0
votes
0
answers
55
views
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 a@192.168.1.4:/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 a@192.168.1.4:/media/notcrypted/ mnt/
cp mnt/file . that changes the server file's date
`
Asked by Bernd Elkemann
(121 rep)
Jul 20, 2025, 11:48 AM
Last activity: Jul 20, 2025, 02:45 PM
Last activity: Jul 20, 2025, 02:45 PM