z0z0r4 / better_backup

Less disk usage, never duplicate files.
MIT License
11 stars 2 forks source link

自动清除旧备份时会删除所有备份 #17

Closed Haocen2004 closed 1 year ago

Haocen2004 commented 1 year ago

版本: 2.1.5

[MCDR] [19:59:22] [better_backup:timer/INFO]: [Better Backup] 每 30.0 分钟一次的定时备份触发
[MCDR] [19:59:22] [better_backup:timer/INFO]: [Better Backup] 备份中...请稍等
[Server] [19:59:22] [Server thread/INFO]: Automatic saving is now disabled
[Server] [19:59:22] [Server thread/INFO]: Saving the game (this may take a moment!)
[Server] [19:59:22] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[Server] [19:59:22] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[Server] [19:59:22] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[Server] [19:59:22] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[Server] [19:59:22] [Server thread/INFO]: Saved the game
[MCDR] [19:59:39] [better_backup:timer/INFO]: [Better Backup] 备份 0e598d 完成,耗时 17.4 秒 * 1.05 GB * timer 定时备份
[MCDR] [19:59:39] [better_backup:timer/INFO]: [Better Backup] 检测到新增的备份,重置定时器
[MCDR] [19:59:39] [better_backup:timer/INFO]: [Better Backup] 下次自动备份时间: 2023/08/29 20:29:39
[MCDR] [20:00:36] [better_backup:timer/INFO]: [Better Backup] 已自动删除备份点 6cc83e * 394f74 * b800b2 * eaa515 * 8cb688 * e45d0a * da8f4a * dd5ec2 * 92d627 * 39c0cc * 3a863b * f38a0f * 89eb3b * 47cd1a * afa747 * 57e1bb * 9b493c * c08a93 * 60b7b0 * ec9c62 * 69ebb6 * 0f1af1 * 4a047b * b310b9 * 512cef * d966a4 * 3b8d44 * 35719a * c53a0a * 767b79 * f12465 * 5eb324 * ff5cc9 * 6f6bdb * 751091 * 30f175 * 64367d * 81263e * cb4563 * f59bbb * fe6ab4 * 8abb88 * 13b4d9 * 5342bc * fe2f63 * 4bc183 * de9a8c * 72cd82 * f1590f * ad02c1
[MCDR] [20:00:36] [better_backup:timer/INFO]: [Better Backup] 定时备份成功
[Server] [20:00:36] [Server thread/INFO]: Automatic saving is now enabled
> !!bb list
[MCDR] [20:03:34] [TaskExecutor/INFO]: [备份点信息]
[MCDR] [20:03:34] [TaskExecutor/INFO]: [01] [0e598d] 23-08-29 19:59 * 1.05 GB   * timer 定时备份
[MCDR] [20:03:34] [TaskExecutor/INFO]: [<<] 1/1 [>>]
[MCDR] [20:03:34] [TaskExecutor/INFO]: 共 1 个备份点,占用空间 1.05 GB

配置文件:

{
    "size_display": true,
    "turn_off_auto_save": true,
    "ignored_files": [
        "session.lock"
    ],
    "ignored_folders": [],
    "ignored_extensions": [
        ".lock"
    ],
    "world_names": [
        "world"
    ],
    "save_command": {
        "save-off": "save-off",
        "save-all flush": "save-all flush",
        "save-on": "save-on"
    },
    "saved_output": [
        "Saved the game",
        "Saved the world"
    ],
    "backup_data_path": "./better_backup",
    "server_path": "./server",
    "overwrite_backup_folder": "overwrite",
    "backup_compress_level": 3,
    "export_backup_folder": "./export_backup",
    "export_backup_format": "tar_gz",
    "export_backup_compress_level": 1,
    "auto_remove": true,
    "backup_count_limit": 50,
    "minimum_permission_level": {
        "make": 1,
        "restore": 2,
        "remove": 2,
        "confirm": 1,
        "abort": 1,
        "reload": 2,
        "list": 0,
        "reset": 2,
        "timer": 2,
        "export": 4
    },
    "timer_enabled": true,
    "timer_interval": 30.0
}
alex3236 commented 1 year ago

fixed: https://github.com/z0z0r4/better_backup/commit/f970e1f9a12521cd3e802bbe11dae20b278d03a8