Start rclone in a network

To start Rclone under Ubuntu, I use

$HOME/.config/systemd/user/Rclone.service

Rclone opens this way when Ubuntu starts.
Is there a way to see if Rclone is working, if it's synchronizing modified files, or if there are any errors... perhaps notifications (like notify-send)?

I also tried the command
mount....--allow-non-empty
but when I disconnect the computer from the network, the mounted folders disappear.

Can they be kept offline?

Thanks in advance.

list the files on the mountpoint.


use a log


that is how rclone mount works.


rclone is not designed to work that way.

Thanks, @asdffdsa
I think this is beyond me for now...
I might look into flags --log-file string

Currently, rClone is launched by the command
in:

$HOME/.config/systemd/user/Rclone.service

container

cat >$HOME/.config/systemd/user/Rclone.service<<EOF
[Unit]
Description=Mon Rclone .
[Service]
Type=simple
ExecStart=rclone mount Test: /home/%u/IsaricGdrive/Test  --vfs-cache-mode writes
[Install]
WantedBy=default.target
EOF

a)
If I put in $HOME/notifications/rClone-notify.sh
With this example found

#!/bin/bash

# Variables
SOURCE="/chemin/source"
DESTINATION="remote:chemin/destination"
OPTIONS="-avP"  # Par exemple, -P pour afficher la progression

# Notification de début
notify-send "Rclone Sync" "Début de la synchronisation..."

# Exécution de rclone
if rclone sync $SOURCE $DESTINATION $OPTIONS; then
    # Notification de succès
    notify-send "Rclone Sync" "Synchronisation terminée avec succès ✅"
else
    # Notification d'erreur
    notify-send "Rclone Sync" "Échec de la synchronisation ❌"
fi

Is it functional?
What should be included in
b)

SOURCE="/chemin/source"

/home/%u/IsaricGdrive/Test ??
d)
What should be changed for the line (in Rclone.service)?

ExecStart=rclone mount Test: /home/%u/IsaricGdrive/Test  --vfs-cache-mode writes

add another line

ExecStartPre=notify-send $HOME/notifications/rClone-notify.sh

add another line ??

Thank you in advance

not sure what you need help with?

Thanks, asdffdsa.
I'm sorry I wasn't clear. I don't speak English! :expressionless_face:

What should I add to

$HOME/.config/systemd/user/Rclone.service

to launch the bash file, knowing that this command already exists to launch rclone.

ExecStart=rclone mount Test: /home/%u/IsaricGdrive/Test --vfs-cache-mode writes

Should I add a second line like this?

ExecStartPre=notify-send $HOME/notifications/rClone-notify.sh

why not try it yourself?

fwiw, not really a rclone question, the internet is full of guides about systemd.