Update README.md

This commit is contained in:
Lilly Tempest 2023-02-05 11:35:44 +01:00 committed by GitHub
parent 3b055013dd
commit c3f57f43df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,9 @@ docker run \
-v /home/user/server/world:/mnt/server \ -v /home/user/server/world:/mnt/server \
-v /mnt/storage/backups:/mnt/backups \ -v /mnt/storage/backups:/mnt/backups \
ghcr.io/nicolaschan/minecraft-backup -c -i /mnt/server -o /mnt/backups -s server-host:25575:secret -w rcon ghcr.io/nicolaschan/minecraft-backup -c -i /mnt/server -o /mnt/backups -s server-host:25575:secret -w rcon
# Using itzg/docker-minecraft-server container and rcon cli
./backup.sh -c -i /home/user/server/world -o /mnt/storage/backups -s container-name -w docker-rcon
``` ```
This will show chat messages (`-c`) and save a backup of `/home/user/server/world` into `/mnt/storage/backups` using the default thinning deletion policy for old backups. This will show chat messages (`-c`) and save a backup of `/home/user/server/world` into `/mnt/storage/backups` using the default thinning deletion policy for old backups.
@ -64,7 +67,7 @@ Command line options:
-p Prefix that shows in Minecraft chat (default: Backup) -p Prefix that shows in Minecraft chat (default: Backup)
-q Suppress warnings -q Suppress warnings
-r Restic repo name (if using restic) -r Restic repo name (if using restic)
-s Screen name, tmux session name, or hostname:port:password for RCON -s Screen name, tmux session name, hostname:port:password for RCON or [container name](https://github.com/itzg/docker-minecraft-server) for docker-rcon
-t Enable lock file (lock file not used by default) -t Enable lock file (lock file not used by default)
-u Lock file timeout seconds (empty = unlimited) -u Lock file timeout seconds (empty = unlimited)
-v Verbose mode -v Verbose mode