From 38251cf0105e3461a486079ae87c77b6ba86ee71 Mon Sep 17 00:00:00 2001 From: Nicolas Chan Date: Thu, 4 Mar 2021 13:03:40 -0800 Subject: [PATCH] Update examples --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 694dc5b..bee0efd 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,14 @@ chmod +x backup.sh ## Usage ```bash +# If connecting with RCON: +./backup.sh -c -i /home/user/mcserver/world -o /mnt/storage/backups -s localhost:25575:secret -w rcon + +# If running on screen called "minecraft": ./backup.sh -c -i /home/user/mcserver/world -o /mnt/storage/backups -s minecraft + +# If running on tmux session 0: +./backup.sh -c -i /home/user/mcserver/world -o /mnt/storage/backups -s 0 -w tmux ``` This will show chat messages (`-c`) in the screen called "minecraft" and save a backup of `/home/user/mcserver/world` into `/mnt/storage/backups` using the default thinning deletion policy for old backups.