Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions rclone.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,23 @@ These instructions will guide you through the process of creating a *rclone.conf
* Samba share
* Copying directly the file with a SD adapter

## Destination directory

A new variable can be define to change the destination directory name.

If not defined, the default value *MiSTer* will be used).

To change this value, create a file *rclone.ini* in the same directory where the rclone scripts are (usually */media/fat/#Scripts*) using the method you prefer, i.e.

Example of content:
```ini
DIRECTORY_NAME="mister_backups"
```

## S3 provider

The *DIRECTORY_NAME* is used as the bucket name.\
Change this value to a valid bucket name (see [#destination-directory](#destination-directory) section).

## Enjoy the rclone scripts
1. Use *rclone_config_download.sh*, *rclone_config_upload.sh*, *rclone_saves_download.sh* and *rclone_saves_upload.sh* either through the OSD Script menu (hit F12 while running MiSTer main menu) or manually launching them in a SSH session.
6 changes: 5 additions & 1 deletion rclone_config_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@


SCRIPT_PATH="$(realpath "$0")"
DIRECTORY_NAME="MiSTer"

INI_PATH=rclone.ini
[ -f $INI_PATH ] && eval "$(cat $INI_PATH | tr -d '\r')"

RCLONE_URL="https://downloads.rclone.org/rclone-current-linux-arm.zip"
RCLONE_CONFIG="$(dirname "$SCRIPT_PATH")/rclone.conf"
RCLONE_OPTIONS="--verbose"
RCLONE_COMMAND="copy"
RCLONE_SD_DIR="config"
RCLONE_SOURCE="MiSTer:MiSTer/$RCLONE_SD_DIR"
RCLONE_SOURCE="MiSTer:$DIRECTORY_NAME/$RCLONE_SD_DIR"
RCLONE_DEST="/media/fat/$RCLONE_SD_DIR"

source "$(dirname "$SCRIPT_PATH")/rclone.sh.inc"
8 changes: 6 additions & 2 deletions rclone_config_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@


SCRIPT_PATH="$(realpath "$0")"
DIRECTORY_NAME="MiSTer"

INI_PATH=rclone.ini
[ -f $INI_PATH ] && eval "$(cat $INI_PATH | tr -d '\r')"

RCLONE_URL="https://downloads.rclone.org/rclone-current-linux-arm.zip"
RCLONE_CONFIG="$(dirname "$SCRIPT_PATH")/rclone.conf"
RCLONE_OPTIONS="--verbose"
RCLONE_COMMAND="copy"
RCLONE_SD_DIR="config"
RCLONE_SOURCE="/media/fat/$RCLONE_SD_DIR"
RCLONE_DEST="MiSTer:MiSTer/$RCLONE_SD_DIR"
RCLONE_DEST="MiSTer:$DIRECTORY_NAME/$RCLONE_SD_DIR"

source "$(dirname "$SCRIPT_PATH")/rclone.sh.inc"
source "$(dirname "$SCRIPT_PATH")/rclone.sh.inc"
6 changes: 5 additions & 1 deletion rclone_saves_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@


SCRIPT_PATH="$(realpath "$0")"
DIRECTORY_NAME="MiSTer"

INI_PATH=rclone.ini
[ -f $INI_PATH ] && eval "$(cat $INI_PATH | tr -d '\r')"

RCLONE_URL="https://downloads.rclone.org/rclone-current-linux-arm.zip"
RCLONE_CONFIG="$(dirname "$SCRIPT_PATH")/rclone.conf"
RCLONE_OPTIONS="--verbose"
RCLONE_COMMAND="copy"
RCLONE_SD_DIR="saves"
RCLONE_SOURCE="MiSTer:MiSTer/$RCLONE_SD_DIR"
RCLONE_SOURCE="MiSTer:$DIRECTORY_NAME/$RCLONE_SD_DIR"
RCLONE_DEST="/media/fat/$RCLONE_SD_DIR"

source "$(dirname "$SCRIPT_PATH")/rclone.sh.inc"
9 changes: 7 additions & 2 deletions rclone_saves_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@

SCRIPT_PATH="$(realpath "$0")"

DIRECTORY_NAME="MiSTer"

INI_PATH=rclone.ini
[ -f $INI_PATH ] && eval "$(cat $INI_PATH | tr -d '\r')"

RCLONE_URL="https://downloads.rclone.org/rclone-current-linux-arm.zip"
RCLONE_CONFIG="$(dirname "$SCRIPT_PATH")/rclone.conf"
RCLONE_OPTIONS="--verbose"
RCLONE_COMMAND="copy"
RCLONE_SD_DIR="saves"
RCLONE_SOURCE="/media/fat/$RCLONE_SD_DIR"
RCLONE_DEST="MiSTer:MiSTer/$RCLONE_SD_DIR"
RCLONE_DEST="MiSTer:$DIRECTORY_NAME/$RCLONE_SD_DIR"

source "$(dirname "$SCRIPT_PATH")/rclone.sh.inc"
source "$(dirname "$SCRIPT_PATH")/rclone.sh.inc"