2020-06-06 19:41:42 +00:00
|
|
|
# Albatross
|
|
|
|
Back up what you care about in your Minecraft worlds.
|
|
|
|
|
2021-02-04 22:21:31 +00:00
|
|
|
Albatross backs up player files and region files within a certain configurable radius. It can also send Discord
|
|
|
|
webhooks. Backups are compressed and stored as `tar.gz` archives.
|
|
|
|
|
|
|
|
Backups can also be transferred to a remote server using SFTP.
|
2020-06-07 19:21:26 +00:00
|
|
|
|
2020-10-24 18:41:11 +00:00
|
|
|
## Help
|
|
|
|
```
|
2021-02-04 00:46:33 +00:00
|
|
|
albatross 0.4.0
|
2020-10-24 18:41:11 +00:00
|
|
|
Backup your Minecraft Server!
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
albatross --config-path <config-path> <SUBCOMMAND>
|
|
|
|
|
|
|
|
FLAGS:
|
|
|
|
-h, --help Prints help information
|
|
|
|
-V, --version Prints version information
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
-c, --config-path <config-path> Path to the Albatross config [env: ALBATROSS_CONFIG=]
|
|
|
|
|
|
|
|
SUBCOMMANDS:
|
2020-11-04 03:54:15 +00:00
|
|
|
backup Backup a server
|
|
|
|
export Export a backup as a single player world
|
|
|
|
help Prints this message or the help of the given subcommand(s)
|
|
|
|
restore Restore certain chunks from a backup
|
2020-11-06 02:35:34 +00:00
|
|
|
|
|
|
|
Process finished with exit code 1
|
|
|
|
|
2020-11-04 03:54:15 +00:00
|
|
|
```
|
2020-10-24 18:41:11 +00:00
|
|
|
|
2020-11-04 03:54:15 +00:00
|
|
|
## Examples
|
|
|
|
Running a backup:
|
2020-10-24 18:41:11 +00:00
|
|
|
|
2020-11-04 03:54:15 +00:00
|
|
|
`albatorss -c test.toml backup`
|
|
|
|
|
|
|
|
Exporting a backup to a single player world:
|
|
|
|
|
|
|
|
`albatorss -c test.toml export backups/04-11-20_01.51.27_backup.tar.gz sp.tar.gz`
|
|
|
|
|
2020-11-06 02:35:34 +00:00
|
|
|
Restoring a single chunk (from -2,-2 to 2,2):
|
|
|
|
|
2021-02-04 22:21:31 +00:00
|
|
|
`albatorss -c test.toml restore world backups/04-11-20_01.51.27_backup.tar.gz sp.tar.gz` (0,0)
|
2020-11-06 02:35:34 +00:00
|
|
|
|
2020-11-04 03:54:15 +00:00
|
|
|
Restoring a range of chunks (from -2,-2 to 2,2):
|
|
|
|
|
2021-02-04 22:21:31 +00:00
|
|
|
`albatorss -c test.toml restore world backups/04-11-20_01.51.27_backup.tar.gz sp.tar.gz` (-2,-2) -u (2,2)
|
2020-10-24 18:41:11 +00:00
|
|
|
|
2020-06-06 19:41:42 +00:00
|
|
|
## Config
|
|
|
|
```toml
|
2021-02-04 22:21:31 +00:00
|
|
|
# Local Backup Config
|
2020-06-06 19:41:42 +00:00
|
|
|
[backup]
|
|
|
|
# Minecraft sever directory
|
|
|
|
minecraft_dir = "/home/mc/server"
|
2021-02-04 22:21:31 +00:00
|
|
|
# Optional Discord webhook
|
2020-06-07 19:21:26 +00:00
|
|
|
discord_webhook = "https://discordapp.com/api/webhooks/"
|
2021-09-19 19:56:30 +00:00
|
|
|
# Number of backups to keep
|
|
|
|
backups_to_keep = 10
|
|
|
|
|
|
|
|
[backup.output_config]
|
|
|
|
# Directory to place backups
|
|
|
|
path = "/home/mc/backups"
|
2020-06-06 19:41:42 +00:00
|
|
|
|
2021-09-19 19:56:30 +00:00
|
|
|
# Optional remote_backup backup config
|
2021-02-04 22:21:31 +00:00
|
|
|
[remote]
|
|
|
|
# SFTP server host:port
|
|
|
|
sftp_server_addr = "localhost:22"
|
|
|
|
# Remote directory
|
|
|
|
remote_dir = "/home/backup/"
|
|
|
|
# Remote user
|
|
|
|
username = "user"
|
|
|
|
# Password Auth
|
|
|
|
password = "cooluser123"
|
|
|
|
# Key Auth
|
|
|
|
#public_key = /home/user/.ssh/id_rsa.pub"
|
|
|
|
#private_key = /home/user/.ssh/id_rsa"
|
2021-09-19 19:56:30 +00:00
|
|
|
# Backups to keep on the remote_backup host
|
2021-02-04 22:21:31 +00:00
|
|
|
backups_to_keep = 3
|
|
|
|
|
2020-06-07 19:21:26 +00:00
|
|
|
# World config options
|
2020-06-06 19:41:42 +00:00
|
|
|
[[world_config]]
|
2021-02-04 22:21:31 +00:00
|
|
|
# World name
|
2020-06-06 19:41:42 +00:00
|
|
|
world_name = "world"
|
2021-02-04 22:21:31 +00:00
|
|
|
# World save radius (in blocks)
|
2020-06-06 19:41:42 +00:00
|
|
|
save_radius = 8000
|
|
|
|
```
|