In this guide we’ll be going over on how to get discord notifications when rclone have completed it’s daily upload.
Here’s an example of want it would look like
I like to keep my rclone stuff private form other users so I’ve created a dedicated channel for rclone notifications.
In order to get started you need to create discord webhook:
Follow these simple steps and save the webhook link. We’ll be using it later on.
RClone Move Script
You most like already have a rclone move script up and running. Some with default QuickBox Pro settings others with modifications.
This guide will be providing a new move script. Feel free to modify the rclone move flags as you like. For beginners I suggest you leave it default.
SSH into your server and elevate session
sudo su - and navigation into your rclone folder
Next we will grab the script and assign permissions to it. Run line by line
wget https://lab.quickbox.io/QuickBox/Pro/-/raw/master/bin/rclonediscord.sh chown -cR 1000:1000 rclonediscord.sh chmod +x rclonediscord.sh
Next we will need to edit the
rclonediscord.sh script and insert the newly created discord webhook.
Edit the highlighted lines.
Replace USERNAME with your username
Insert your discord URL.
SOURCE_DIR="/home/USERNAME/rclone/cache/" DESTINATION_DIR="gdrive:Media" DISCORD_WEBHOOK_URL="InsertDiscordWebhookURLHere" DISCORD_ICON_OVERRIDE="https://i.imgur.com/MZYwA1I.png" DISCORD_NAME_OVERRIDE="RCLONE" LOCK_FILE="https://cdn.quickbox.io/home/USERNAME/rclone/rclone-upload.lock" LOG_FILE="https://cdn.quickbox.io/home/USERNAME/rclone/rclone-upload.log"
QuickBox Pro rclone encrypted users; you will also need to edit line #2. Replace
Enabling the script
Since QuickBox rclone is already installed and running, we will need to stop the current move job and enable the discord notification script.
Edit the cron job and comment out the
move.sh script and add a new line for
rclonediscord.sh by running
#0 3 12 * * /home/USERNAME/rclone/move.sh 0 3 12 * * /home/USERNAME/rclone/rclonediscord.sh
Note: your crontab list will most like have more entries
Rclone Dashboard functionality is still bound to the original install. Meaning hitting the upload or log buttons will run and read the original
move.sh script. The only change we’ve made to the initial install is that we’ve stopped the daily default upload script and replaced it with the new rclone discord notification script.
A new upload log file will also be generated called
As this is a userscript QuickBox Pro staff cannot support any issue you may experience. But we will of course do our best to support you.