Touch up readme

This commit is contained in:
Nicolas Chan 2021-03-04 13:05:51 -08:00
parent 38251cf010
commit c079e0f1f5

View file

@ -22,16 +22,16 @@ chmod +x backup.sh
## Usage ## Usage
```bash ```bash
# If connecting with RCON: # If connecting with RCON:
./backup.sh -c -i /home/user/mcserver/world -o /mnt/storage/backups -s localhost:25575:secret -w rcon ./backup.sh -c -i /home/user/server/world -o /mnt/storage/backups -s localhost:25575:secret -w rcon
# If running on screen called "minecraft": # If running on screen called "minecraft":
./backup.sh -c -i /home/user/mcserver/world -o /mnt/storage/backups -s minecraft ./backup.sh -c -i /home/user/server/world -o /mnt/storage/backups -s minecraft
# If running on tmux session 0: # If running on tmux session 0:
./backup.sh -c -i /home/user/mcserver/world -o /mnt/storage/backups -s 0 -w tmux ./backup.sh -c -i /home/user/server/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. 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.
Command line options: Command line options:
```text ```text
@ -56,7 +56,7 @@ Command line options:
- Edit the crontab with `crontab -e` - Edit the crontab with `crontab -e`
- Example for hourly backups: - Example for hourly backups:
``` ```
00 * * * * /path/to/backup.sh -c -i /home/user/mcserver/world -o /mnt/storage/backups -s minecraft 00 * * * * /path/to/backup.sh -c -i /home/user/server/world -o /mnt/storage/backups -s minecraft
``` ```
## Retrieving Backups ## Retrieving Backups