有没有这样一款能在 Linux 和 windows 之间同步文件夹的软件?

200 天前
 wniming

我需要将文件夹从 linux 同步到 windows ,windows 始终作为 linux 的一个镜像备份,这个需求本来只要是有有增量同步功能以及删除目标目录中存在但原目录中不存在的文件的功能的软件就行,但我会经常把一些大文件从 a 目录移动到 b 目录,我希望文件同步软件能做到在 windows 上也把这个文件从 a 目录移动到 b 目录,而不是把 a 目录下的这个文件删除掉,然后再重新把文件从 linux 的 b 目录拷贝到 windows 的 b 目录

6508 次点击
所在节点    NAS
65 条回复
noErr
199 天前
WinSCP 啊
polarwolf
199 天前
free file sync 和 kopia 也可以看一下
saranz
199 天前
用 Wine 安装 oneDrive 感觉也是可以。
1252603486
199 天前
syncthing 最好用
jackey007
199 天前
不是很多人同时用的话,nextcloud 还是很稳定的
kaizceo8
199 天前
windows 安装 minio linux 使用 mc
linuxsir2020
199 天前
歪个楼, 放在共享目录里操作 :)
nativeBoy
199 天前
@bianjp 如果再搞个一直开机的设备会好点,比如 nas ,服务器,或者手机
iamjs
199 天前
syncthing
Jericho112
199 天前
windows 开一个文件夹共享,打开编辑权限,局域网内 linux 连过去?
wniming
199 天前
测试了一下 syncthing ,基本满足需求,确实能在源目录(设置为仅发送的目录)的文件重命名或移动到其它目录时在目标目录(设置为仅接收的目录)上做同样的操作,唯一的问题是它基本上要求目标目录在第一次同步前是一个空目录,我测试过程中遇到两台机同步后状态都是“up to date”,但是目标目录中原来有的一些源目录中没有的文件没有被删除。

syncthing 如果能让两个在第一次同步之前都非空的目录同步就好了,比如第一次同步之前先计算一下源目录和目标目录的所有文件的 md5 ,如果有 md5 相同的文件就不要从源目录拷贝,直接在目标目录移动或重命名,然后把存在在目标目录中但不存在在源目录中的文件删除掉,然后再把源目录中存在但目标目录中不存在的文件拷贝到目标目录,这样就能在目标目录已经有源目录的大部分文件,但是文件名和路径跟源目录不一样时发挥特别大的作用。
wniming
199 天前
@zjsxwc #24 #25 这两个都试了也是不行
meeliao
199 天前
俺用的 syncthing ,体验还不错
slrey
199 天前
freefilesync 是这个功能的。

它的官网是这么写的。

Detect Moved Files
FreeFileSync is able to detect moved files and quickly apply the same move on the target side during synchronization instead of a slow copy and delete. To makes this work, Use database file to detect changes must be checked and the file system must support file IDs.

Note:
Detection of moved files is not yet possible when synchronizing a folder pair for the first time. Only beginning with the second sync the database files are available to determine moved files.
Detection is not supported on file systems that don't have (stable) file IDs. Most notably, certain file moves on FAT file systems cannot be detected. Also, protocols like SFTP do not support move detection. In these cases FreeFileSync will automatically fall back to "copy and delete".
skiy
199 天前
syncthing +1

如果是单文件,就用 LocalSend
joyxubing966
199 天前
@bianjp 卧槽 我一直以为是我使用问题
xloong
199 天前
@bianjp #32 可以手机也安装 syncthing, 充当中间传输的中转站, 我就这么干的
而且手机相册直接设置同步到电脑, 当做备份, 去年 9 月份手机炸了, 基本不慌, 重要的文件电脑上都有备份

@joyxubing966 #56
stevenshum
198 天前
Samba 呀,Samba 最大的功能就是可以用于 Linux 与 windows 系统直接的文件共享和打印共享。
BKElectroCloud
198 天前
@czhu 一直在用 resilio rync ,近期根本打不了洞,没法提供广域网的文件同步了,唯一优势只剩下图形化多端操作简易了。
louisyoungx
198 天前
这种场景真该买个 NAS 吧

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1114204

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX