Android-DataBackup icon indicating copy to clipboard operation
Android-DataBackup copied to clipboard

[Feature] 是否打算实现文件增量备份

Open NiuHK opened this issue 1 year ago • 7 comments

是否可以实现文件的增量备份? 像相册文件夹通常较大,每次重复覆盖备份耗时间较长,但实际上需要备份的只有新增的 是否可以实现增量备份?简单点可以通过文件名建立数据库或json判断,每次只备份新增的,将删除项可选移入垃圾桶文件夹或直接同步删除。 更甚,考虑到文件的更改等,是否能够采取或借鉴像git的机制,添加增量备份的选项,甚至可以支持文件的更改追溯

NiuHK avatar Oct 29 '24 14:10 NiuHK

突发奇想,真的可以打包一个git,借用存储库实现增量备份

NiuHK avatar Oct 29 '24 14:10 NiuHK

有计划做增量,但一直没啥时间...

XayahSuSuSu avatar Oct 30 '24 15:10 XayahSuSuSu

有计划做增量,但一直没啥时间... 期待一手,我尝试了一些其他的专门备份照片的,发现增量逻辑都挺混乱的😭,最后找到一个git annex以及git ftp 可以实现2这种超大存储库的的文件更改追踪。

或许等假期有时间我试试写个demo

NiuHK avatar Oct 30 '24 15:10 NiuHK

文件夹我一般用Syncthing

flyhai avatar Jan 08 '25 04:01 flyhai

感谢推荐👍

flyhai @.***> 于 2025年1月8日周三 下午12:38写道:

文件夹我一般用Syncthing

— Reply to this email directly, view it on GitHub https://github.com/XayahSuSuSu/Android-DataBackup/issues/316#issuecomment-2576735408, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6ZKB3A33CPMXYOW336YAND2JSTUTAVCNFSM6AAAAABQ2ARI3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZWG4ZTKNBQHA . You are receiving this because you authored the thread.Message ID: @.***>

NiuHK avatar Jan 08 '25 17:01 NiuHK

我目前是直接用 rsync 了。很方便。~~我甚至认为此应用应当砍掉除了应用备份之外的功能~~

手机上开 rsync daemon 然后电脑上 rsync --progress --recursive --times --links --delete rsync://192.168.192.92:9426/sdcard/DCIM ./to

kkocdko avatar Jan 27 '25 19:01 kkocdko

推荐下syncthing,优点在于 有web ui 支持多端同步备份 基于别人贡献的服务器,可以实现自动连接,不用记ip 貌似通过别人的共享中继可以实现慢速的不同网络下备份(重要的文件夹可以实现随时备份,包括用流量的时候)

https://blog.jimmyho.net/archives/1229/

NiuHK avatar Jan 28 '25 02:01 NiuHK