Описание
# Backup Always Right

> #### Attention!!!!! If yours _Minecraft Version < 1.21.11_ , **Please Use [Version : 1.0.0]()**,
> #### Mojang changed old api, so this version(Minecraft Version < 1.21.11) don't support OP Permissions Setting
#### Support 简体中文/English
A easyful Minecraft server backup mod with smart backup, multi-language support, and multiple storage paths.
## Features
- **Scheduled backups** - Set intervals in minutes, hours, or days
- **Smart backup** - Backs up only when significant world changes occur
- **Multi-path support** - Backup to multiple local or network locations
- **Manual control** - Complete command system for backup management
- **Multi-language** - English and Simplified Chinese, auto-detection
- **Backup verification** - Automatically verify backup integrity
- **Compression control** - 0-9 compression levels
- **Old backup cleanup** - Automatically remove old backups
## Installation
0. **You need Install [Fabric-Language-Kotlin](https://modrinth.com/mod/fabric-language-kotlin) too.**
1. Place the mod file in server's `mods` folder
2. Start server to generate config file
3. Modify `config/bar.conf` as needed
4. Reload with `/bar reload` or restart server
## Commands
| Command | Description | Permission |
|---------|-------------|------------|
| `/bar start` | Start manual backup | 2 |
| `/bar list` | List all backups | 0 |
| `/bar status` | Show backup system status | 0 |
| `/bar reload` | Reload configuration | 3 |
| `/bar interval minute ` | Set interval in minutes | 3 |
| `/bar interval hour ` | Set interval in hours | 3 |
| `/bar interval day ` | Set interval in days | 3 |
| `/bar autobackup enable/disable` | Enable/disable auto backup | 3 |
| `/bar debug enable/disable` | Enable/disable debug mode | 3 |
| `/bar shutdown` | Backup and shutdown server | 4 |
| `/bar shutdown delay ` | Set shutdown delay | 4 |
## ⚙️ Configuration
Edit `config/bar.conf`:
### Path Examples
```properties
# Folders to backup (multiple separated by ;)
# 要备份的文件夹(多个用;分隔)
# Example : world;world_nether;world_the_end;mods;whatelse
backupFolders=world
# Local paths
backupPaths=./backups;backups;/home/mcserver/backups
# Network paths
backupPaths=backups;\\192.168.0.105\Base\Backups;D:\Backups
```
### General Settings
```properties
# Language (auto, en_us, zh_cn)
language=en_us
# Folders to backup (separate with ;)
backupFolders=world
# Enable auto backup
backupEnabled=true
# Backup paths (separate with ;)
backupPaths=backups
# Backup interval (supports m/h/d units)
backupInterval=30m
# Maximum number of backups
maxBackups=20
# Notify players
notifyPlayers=false
# Notice time before backup (seconds)
noticeTime=3
# Shutdown delay after backup (seconds)
shutdownDelay=15
```
### Advanced Settings
```properties
# Verify backup integrity
verifyBackup=true
# Smart backup (skip if no changes)
smartBackup=true
# Require significant changes
requireSignificantChange=false
# Change threshold (0-1.0)
changeThreshold=0.01
# Minimum changed files
minChangedFiles=5
# Compression level (0-9)
compressionLevel=3
# Minimum backup size (MB)
minBackupSizeMB=5
# Debug mode
debugMode=false
```
## 🔧 Troubleshooting
Enable debug mode: /bar debug enable
Check path permissions and disk space
Lower compression level if backup is slow
Reduce maxBackups if disk space is low
Always backup, always right!