Added remote section to example config in README.md

backup_error_fix
Joey Hines 2021-02-04 16:21:31 -06:00
parent 18c6411bf5
commit 9c7f9906ad
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
1 changed files with 26 additions and 7 deletions

View File

@ -4,6 +4,8 @@ Back up what you care about in your Minecraft worlds.
Albatross backs up player files and region files within a certain configurable radius. It can also send Discord 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. webhooks. Backups are compressed and stored as `tar.gz` archives.
Backups can also be transferred to a remote server using SFTP.
## Help ## Help
``` ```
albatross 0.4.0 albatross 0.4.0
@ -40,14 +42,15 @@ Exporting a backup to a single player world:
Restoring a single chunk (from -2,-2 to 2,2): Restoring a single chunk (from -2,-2 to 2,2):
`albatorss -c test.toml restore world backups/04-11-20_01.51.27_backup.tar.gz sp.tar.gz (0,0)` `albatorss -c test.toml restore world backups/04-11-20_01.51.27_backup.tar.gz sp.tar.gz` (0,0)
Restoring a range of chunks (from -2,-2 to 2,2): Restoring a range of chunks (from -2,-2 to 2,2):
`albatorss -c test.toml restore world backups/04-11-20_01.51.27_backup.tar.gz sp.tar.gz (-2,-2) -u (2,2)` `albatorss -c test.toml restore world backups/04-11-20_01.51.27_backup.tar.gz sp.tar.gz` (-2,-2) -u (2,2)
## Config ## Config
```toml ```toml
# Local Backup Config
[backup] [backup]
# Minecraft sever directory # Minecraft sever directory
minecraft_dir = "/home/mc/server" minecraft_dir = "/home/mc/server"
@ -55,13 +58,29 @@ minecraft_dir = "/home/mc/server"
output_dir = "/home/mc/backups" output_dir = "/home/mc/backups"
# Number of backups to keep # Number of backups to keep
backups_to_keep = 10 backups_to_keep = 10
# Discord Webhook # Optional Discord webhook
discord_webhook = "https://discordapp.com/api/webhooks/" discord_webhook = "https://discordapp.com/api/webhooks/"
# Optional remote backup config
[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"
# Backups to keep on the remote host
backups_to_keep = 3
# World config options # World config options
[[world_config]] [[world_config]]
# world name # World name
world_name = "world" world_name = "world"
# world save radius (in blocks) # World save radius (in blocks)
save_radius = 8000 save_radius = 8000
``` ```