Fast Async Backups
A simple async world backup mod for neoforge which is compactible with sable (create & addons + aeronautics) c2me, scalableLux
Оцените первым
3.0K
3
Список изменений
The mod has been rebuilt with the new backup strategy to fix compatibility with sable (create aeronautics & addons).
New approach — copy first, then zip:
saveAllChunks— Flush all chunks to disk (unchanged)copyDirectory— Recursively copy the entire world folder to a temp directory usingFiles.copy(source, target, REPLACE_EXISTING, COPY_ATTRIBUTES)— this path-to-path copy on Windows uses theCopyFileExAPI which can read locked files (unlike stream-basedFiles.newInputStream)copyFileWithRetries— If a file is still locked, retries up to 5 times with increasing backoff (500ms, 1000ms, 1500ms, 2000ms, 2500ms)zipDirectory— Zip from the temp copy (no file locks since it's our own copy)deleteDirectory— Clean up the temp directory in thefinallyblock
This ensures the backup captures the complete world including files that are locked by Sable or other mods, because the path-to-path copy operates at the filesystem level where Windows can handle shared locks. The zip step then works from our own clean copy with zero lock conflicts.
Файлы
worldbackup-3.0.0.jar(15.85 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.0.0
Загрузчики
NeoForge
Версии игры
1.21.1–1.21.11
Загрузок
239
Дата публикации
04.06.2026