Restic mit rcloud und Google Drive

Hi, I’m trying to use Google Drive as a backup server with rclone on Ubuntu 22.04, and it basically works with the following command: ionice -c2 nice -n19 ./restic -r rclone:TestGoogleDrive:mtb backup --files-from includes.txt --exclude-file excludes.txt. To optimize the backup parameters, I found this forum post: [Link to Forum]. Following that, I adjusted my script as follows: ionice -c2 nice -n19 ./restic -r rclone:TestGoogleDrive:mtb backup -o rclone.args="--drive-chunk-size=256M --drive-use-trash=false --fast-list" --files-from includes.txt --exclude-file excludes.txt,
I then tried: ionice -c2 nice -n19 ./restic -r rclone:TestGoogleDrive:mtb -o rclone.args="--drive-chunk-size=256M --drive-use-trash=false --fast-list" backup --files-from includes.txt --exclude-file excludes.txt, and received the following error message:

and received the following error message:
rclone: Error: unknown command “TestGoogleDrive:mtb” for “rclone”
rclone: Run ‘rclone --help’ for usage.
rclone: You could use ‘rclone selfupdate’ to get the latest features.
rclone:
rclone: 2024/11/12 02:29:03 CRITICAL: Fatal error: unknown command “TestGoogleDrive:mtb” for “rclone”
Fatal: unable to open repository at rclone:TestGoogleDrive:mtb: error talking HTTP to rclone: exit status 1

I’m using restic 0.17.3, compiled with go1.23.3 for linux/amd64, and rclone is also installed. Could you give me a bit of help? What am I doing wrong, and how can I get it to work?

Thank you very much in advance for your support!

That should read -o rclone.args="serve restic --drive-chunk-size=256M --drive-use-trash=false --fast-list".

Thank you very much for your help, Michael. I have tried many variations, and the one that saves me 30 minutes to back up 15,100 files/directories with 25.462 GiB is the following combination.

RESTIC_FEATURES=“deprecate-s3-legacy-layout=false” ionice -c2 nice -n19 ./restic -o rclone.program=“./rclone” -o rest.connections=6 -o rclone.args=“serve restic --stdio --drive-chunk-size=256M --drive-use-trash=false --fast-list” -r rclone:TestGoogleDrive:mtb backup --read-concurrency 6 --no-scan --verbose --files-from includes.txt --exclude-file excludes.txt

Do you think a different combination would be optimal? If not, I would close the thread.

These two parameters probably have no effect at all on the backup duration.

Why are you setting this flag? It will be removed in the next restic version.