Commit Graph

249 Commits (2.x_zh_cn_translation)

Author SHA1 Message Date
Szum123321 ef4c69b4d1 ffffffffffffffffffffff 2022-11-06 11:46:40 +01:00
Szum123321 8427eebfcc Added 'latest' keyword to restore (#85)
RestoreHelper::getAvailableBackups now returns sorted LinkedList
2022-11-06 11:00:14 +01:00
Szum123321 2f11548fef bugfix + typos 2022-11-06 10:59:03 +01:00
Szum123321 3f2658ed96 Cleanup is now implements Callable 2022-11-05 13:31:44 +01:00
Szum123321 fe25b1eec5 typos 2022-11-05 13:30:45 +01:00
Szum123321 53a5639373 repaired bad error handling 2022-10-04 18:56:48 +02:00
Szum123321 dc974aa35b improved comment quality 2022-10-04 18:56:08 +02:00
Szum123321 4cbe18f318 removed deprecated code 2022-09-04 10:49:49 +02:00
Szum123321 dc24d51674 stream is closed 2022-09-04 10:49:08 +02:00
Szum123321 8b7dbdc8e8 added better catch and changed default executorService to null 2022-09-02 21:05:27 +02:00
Szum123321 b908e651a1 Forgot to commit 2022-08-31 23:00:24 +02:00
Szum123321 81c5cd04cb Commented some more code.
BackupScheduler is now static
2022-08-31 22:53:30 +02:00
Szum123321 6707e813b2 explicit presence declaration 2022-08-31 22:50:48 +02:00
Szum123321 91447b7b3c This shouldn't be here... 2022-08-31 22:42:39 +02:00
Szum123321 8cede17568 because of that return, the finally block would never run 2022-08-31 22:36:50 +02:00
Szum123321 c7fd6d3f8e Did I forget the sort? 2022-08-31 22:32:56 +02:00
Szum123321 c22eb7a3b2 made cleanup more readable 2022-08-30 14:46:15 +02:00
Szum123321 21cf46a56a Moved all filename paring into its own class 2022-08-30 13:28:30 +02:00
Szum123321 b3a340deab Separated BackupHelper into the factory and the cleanup (MakeBackupRunnableFactory & Cleanup) 2022-08-30 01:31:43 +02:00
Szum123321 b7da7dbc6f Replaced Statics with Globals - now a singleton
Moved updateTMPFSFlag from Utilities to Statics/Globals

Added proper shutdown procedure for executorService (shutdownQueueExecutor) - should repair #37

Refactored some commands
2022-08-30 01:15:56 +02:00
Szum123321 03743dbdc9 1.19 update 2022-08-25 21:50:57 +02:00
Szum123321 a9befa2301 Repaired BackupHelper 2022-06-22 21:32:20 +02:00
Szum123321 27aa40027c dropped unnecessary accessors in BackupContext (record) 2022-06-22 20:02:37 +02:00
Szum123321 fd02df7022 Cleaner cleanup algorithm 2022-06-18 08:30:36 +02:00
Szum123321 3f1f1704b1 Added safe restore 2022-06-17 23:14:14 +02:00
Szum123321 b4597f6f1f pt III, slowly moving to the new file handling api (File -> Path) 2022-06-17 22:43:41 +02:00
Szum123321 a85db99d82 pt II, slowly moving to the new file handling api (File -> Path) 2022-06-17 21:33:13 +02:00
Szum123321 6897b94afc slowly moving to the new file handling api (File -> Path) 2022-06-17 21:15:50 +02:00
IzzyBizzy f06cdb6e3c "TMP filesystem ({}) is read-only!" Fix
TMP filesystem ({}) is read-only! was showing up when running on windows environment. May be wrong in removing the .resolve part, but found that Java was trying to locate a file that wasn't being created when the server/client was ran, resulting in the check failing. Removing the resolve still seems to pickup if a directory is read only so should be good still (hopefully lol)
2022-06-10 19:13:29 +10:00
IzzyBizzy d0ffab9339 1.19 Changes 2022-06-10 14:08:46 +10:00
Lily Rose c4549e8f0a
Add replacment of reserved filename chars from comment 2022-01-09 03:12:46 +11:00
Szum123321 bbb07451bd #80 test 2021-12-23 20:58:55 +01:00
Szum123321 9caf851783 Replaced ZipArchiveInputStream based zip decompressor with one based on ZipFile (might be useful for partial restore, but no promise) 2021-11-27 20:11:43 +01:00
Szum123321 50e465fc17 Added more accurate detection of insufficient /tmp 2021-11-27 19:58:51 +01:00
Szum123321 eb6f4fdb10 Added Config option to enable/disable global announcement of backup starting and finishing 2021-11-27 19:56:11 +01:00
Szum123321 3bf91ea915 1.18 dep and name update 2021-11-27 19:54:35 +01:00
Szum123321 51330a036d Added backup done message, Moved notifyPlayer to Utilities (closed #71) 2021-10-03 10:12:33 +02:00
Szum123321 50db7efe08 lang update 2021-08-03 23:19:02 +02:00
Szum123321 a6881b68cd Text correction 2021-08-03 22:13:00 +02:00
Szum123321 2fab8c67f3 Repaired fabric.mod.json 2021-08-03 22:12:36 +02:00
Szum123321 bf5f046985 This was stupid 2021-08-03 21:27:10 +02:00
Szum123321 111fe12ae7 Moved close to finally 2021-08-03 21:26:11 +02:00
szymon 8fe0cae73a Added dependency info to fabric.mod.json 2021-07-09 22:43:47 +02:00
szymon 121d6269cd Added missing copyright headers 2021-07-08 21:45:58 +02:00
szymon 585dd01c02 Moved one perWorldBackup to the top so that General category appears on the top. I might rearrange other settings in more logical way 2021-07-07 14:28:51 +02:00
szymon 47f8c5cbc3 Style correction, removed unnecessary constructors from records 2021-07-07 14:23:54 +02:00
szymon 8858bd498b Use stream instead of for loop 2021-07-07 14:21:49 +02:00
szymon a0c7b478cb Added missing save command 2021-07-07 14:21:22 +02:00
szymon cdd2b78c43 getMinecraftServer was renamed to getServer
Also updated to mc 1.17.1
2021-07-06 22:33:00 +02:00
szymon e9f6a29eb2 Yes! Zero changes to config file look! 2021-07-06 22:15:30 +02:00
szymon a8f98c460e Many, many changes:
- I migrated from cotton config to Cloth config + Auto config, that way it's easy to provide modmenu integration while keeping backward-compatibility. Because settings might change at runtime it's now necessary to keep the config reference up-to-date. I done this by using wrapper class around ConfigHolder<> and having a reference to main instance in each class accessing the config.

 - Switched form using one global logger to creating new instance in every class.

 - Removed BackupScheduler from Statics. Why did I put it there in the first place?
2021-06-26 13:10:35 +02:00
szymon fee04a9943 small correction 2021-06-19 18:48:46 +02:00
szymon fcc1dca958 BackupHelper cleanup 2021-06-19 15:39:00 +02:00
szymon 725d4098be Replaced File with Optional<File> in Statics to make sure I won't forget to check if it exists 2021-06-19 14:44:06 +02:00
szymon af8e14f092 Repaired #42 2021-06-19 14:42:22 +02:00
szymon 0a5b5e5c54 Forgot to remove LZMACompressor.java 2021-06-17 22:20:37 +02:00
szymon 78128bc63b Slightly beeter logs 2021-06-17 22:17:55 +02:00
szymon adc14273d0 Java 16 update 2021-06-16 22:42:11 +02:00
szymon 24455d2e5c Last version didn't work with different system languages. This now works but basically depends on a regex 2021-06-14 23:08:56 +02:00
szymon d322f6dc26 Mc version bump 2021-06-13 22:26:17 +02:00
szymon 2ba6ba444c Changed chat message prefix color to match mod's theme. Slightly improved functions notifyPlayer in BackupHelper and RestoreHelper 2021-06-13 22:26:05 +02:00
szymon 95653d066d Added slightly more graceful error handling for THE ISSUE 2021-06-13 21:44:38 +02:00
szymon ab32bd6ead Make it compile and a bit of cleanup 2021-06-13 21:26:57 +02:00
szymon 18e8860f42 1.17 update 2021-06-13 21:25:52 +02:00
szymon f3982d78c0 . 2021-01-02 17:20:56 +01:00
szymon 3c5976f198 Added uncompressed option 2021-01-02 17:20:12 +01:00
szymon c344e01c26 Better CRC32 2020-12-14 13:18:16 +01:00
szymon 927638e0b6 consistency 2020-12-14 12:56:36 +01:00
szymon 09b809de8f Fixed #52 2020-12-13 12:30:58 +01:00
szymon 1b321b7a64 Changed default dateTimeFormat to ISO standard 2020-12-06 22:09:19 +01:00
szymon 7e7280bb82 v 2020-12-06 21:56:23 +01:00
szymon 39d3c3dacd Improved error catching 2020-12-06 21:26:11 +01:00
szymon 8506bef30b Added error catching 2020-12-06 19:19:16 +01:00
szymon 445f7a5613 Some improvements to logging, Player data now gets saved. Few other things... 2020-12-05 23:14:35 +01:00
szymon 7f82664ae7 Added Delete command.
Rearranged command package
2020-12-05 22:17:22 +01:00
szymon d29b9049a4 Typos + missing import 2020-12-02 21:12:58 +01:00
szymon 7e2e399829 Improved RestoreBackupCommand 2020-12-02 21:10:48 +01:00
szymon b68640b37f Added CRC32 calculation to Stored entries in Zip (caused exceptions) 2020-12-02 21:06:46 +01:00
szymon eba22e8464 Added newBackupContextBuilder function to BackupContext.Builder and simplified StartBackupCommand 2020-12-02 21:05:16 +01:00
szymon 06f80a9175 Moved locking world form BackupHelper to MakeBackupRunnable 2020-12-02 21:00:46 +01:00
szymon 163626fb3d Added RestoreContext for good measure 2020-12-02 20:59:47 +01:00
szymon 7c07d2934c Finally no double output! 2020-12-02 20:57:49 +01:00
szymon d27568c20f Renamed BackupInitiator to ActionInitiator and moved it to separate class 2020-12-02 20:49:49 +01:00
szymon 8ba3dbc955 Added comment to isDotDat method 2020-11-30 12:00:29 +01:00
szymon 6f9e98f104 File -> RestoreableFile 2020-11-30 10:35:27 +01:00
szymon 870f133273 Logger.warn -> error 2020-11-30 10:34:48 +01:00
szymon 2de5f4c80b Added missing import, removed duplicate method 2020-11-30 10:34:20 +01:00
szymon 5d7aaf1938 Added some more info to Config 2020-11-30 10:32:58 +01:00
szymon 3b522e2881 Redesign of Compression an archival logic.
Added ZipCompressor
Permanently fixed java.util.concurrent.ExecutionException: java.io.IOException: No space left on device.
2020-11-30 10:32:22 +01:00
szymon a5114b49cc Renamed getFileExtension -> getArchiveExtension
Some stylistic improvements
2020-11-30 10:27:26 +01:00
szymon aac63d45ac Partial redesign of RestoreHelper. It now uses RestoreableFile everywhere.
RestoreableFile is now comparable
2020-11-30 10:25:16 +01:00
szymon 0ef89c2a88 Added missing dot 2020-11-30 10:20:21 +01:00
szymon 335ab845cf Added getPrefix method, changed prefixText from Text to MutableText 2020-11-30 10:19:27 +01:00
szymon 2a211065a3 Solves #48 2020-11-30 10:18:35 +01:00
szymon ead057d916 Added custom thread names 2020-11-30 10:17:39 +01:00
szymon ccd87ee942 Added contributors list 2020-11-30 10:16:34 +01:00
szymon a002d49ecf Automatic world saving is disabled when backup is being made 2020-10-29 12:32:18 +01:00
szymon 38030be54d Typos 2020-10-29 12:30:54 +01:00
szymon 599fdb9a19 Some cleanup and comments... 2020-09-13 20:41:23 +02:00
szymon f7d8a7a854 Send to player also sends responses to the server console 2020-09-13 20:39:33 +02:00