A MinUI and NextUI pak to to back up saves, screenshots and other folders to cloud storage providers like Google Drive and Dropbox.
MinUI Cloud Backups is a pak designed for MinUI and NextUI. Its aim is to simplify the process of backing up folders, such as game saves, game states or screenshots, to popular cloud storage providers like Google Drive, Dropbox, OneDrive and more. The pak automates the process of compressing the data into a .zip file and uploading it using Rclone directly from the MinUI device. Currently, the features include the ability to manage multiple backups by either creating, restoring or deleting them. The backups are stored in a configurable folder in the cloud and are named with a timestamp. They can be restored to the device at any time by selecting the backup from a list.
This pak is designed for the following MinUI Platforms and devices:
tg5040: Trimui Brick (formerlytg3040), Trimui Smart Pro
The pak may work on other platforms and devices, but it has not been tested on them.
- Mount your MinUI SD card.
- Download the latest release from GitHub.
- Copy the zip file to the correct platform folder in the "/Tools" directory on the SD card.
- Extract the zip in place, then delete the zip file.
- Confirm that there is a
/Tools/$PLATFORM/Cloud.Backup.pak/launch.shfile on your SD card.
Note: The platform folder name is based on the name of your device. For example, if you are using a TrimUI Brick, the folder is "tg3040". Alternatively, if you're not sure which folder to use, you can copy the .pak folders to all the platform folders.
This pak requires you to firstly set up rclone on your local machine and then copy the configuration to your MinUI device. It is only necessary to generate the configuration and authenticate rclone to access your storage. Once the process is completed, rclone is no longer needed on your local machine and can be safely removed. The steps cannot currently be completed on the MinUI device itself due to the fact it does not have a web browser.
Follow these steps to install and configure rclone:
- Follow the instructions to install
rcloneon your local machine. - Launch your terminal or command prompt.
- Navigate to the directory where
rcloneis downloaded. Typerclone configand press Enter. This will start the configuration process. - Follow the prompts to create a new remote:
- Type
nto create a new remote and press Enter. - Enter the name
trimuifor the remote and press Enter. - Select your cloud storage provider from the list and press Enter.
- Follow the prompts to authenticate and configure the remote. This may involve opening a web browser to authorize
rclonewith your cloud storage provider.
- Type
- Once the remote is configured, you can verify it by running
rclone lsd trimui:. - Locate the
rclone.conffile on your local machine. This file contains the configuration settings forrcloneand is typically located in~/.config/rclone/rclone.confon Linux and macOS or%USERPROFILE%\.config\rclone\rclone.confon Windows. - Copy the
rclone.conffile to root of the MinUI SD card. It will be moved to the correct location by the pak. - Unmount your SD Card and insert it into your MinUI device.
For detailed instructions and troubleshooting, refer to the rclone documentation.
- Navigate to the Tools menu on your MinUI device.
- Select the "Cloud Backups" option.
- Select
Create Backupto start the backup process. This will create a zip file and upload it to the configured cloud storage. - Alternatively, you can select
Restore Backupto restore a previously created backup. This will download the zip file from the cloud storage and extract it to the device. - You can also select
Delete Backupto delete a backup file from the cloud storage.
The config.json file in the Cloud Backups pak folder allows you to customize the behaviour of the pak.
- Mount your MinUI SD card on your computer.
- Navigate to the
/Tools/$PLATFORM/Cloud.Backup.pak/folder. - Open the
config.jsonfile in a text editor. - Modify the settings as needed, ensuring the JSON syntax remains valid.
- Save the file and unmount your SD card.
- Insert the SD card back into your MinUI device.
Specifies the folders on your MinUI device that will be included in the backup. Add or remove folder paths in the array. For example, to include an additional folder, modify it as follows:
"source_folders": [
"/Saves",
"/Screenshots",
"/.userdata"
]Defines the destination folder on your cloud storage where backups will be stored. Replace the value with the desired folder path. For example:
"rclone_destination": "/MyTrimuiBackups"Sets the prefix for the backup file names. This will be followed by a timestamp and the .zip extension. For example: MyTrimuiBackup-2025-01-01.zip. Update the prefix to your preferred name. For example:
"rclone_backup_prefix": "MyTrimuiBackup"Specifies the name of the rclone remote configured for your cloud storage. Ensure this matches the name of the remote you configured in rclone. By default, the remote name is trimui. For example:
"rclone_remote_name": "trimui"- MinUI by Shaun Inman
- minui-list and minui-presenter by Jose Diaz-Gonzalez
- Also, thank you, Jose Diaz-Gonzalez, for your pak repositories, which this project is based on.
This project is released under the MIT License. For more information, see the LICENSE file.