Command move needs 2 arguments maximum

Hello all,
I would like to hear from everybody on this case…
If I run individual this command, it’s working well…
rclone move /home/backups onedrive:/home/backups --exclude *bk_logs/* -vL --log-file /home/bk_logs/rclone.log

But when executing with a variable, it come up with the error: “Command move needs 2 arguments maximum”
My script:

#! /bin/bash
SRC=/home/backups
DEST=onedrive:/home/backups
printf "Moving the old backup file in %s to %s \n" ${SRC} ${DEST}
rclone move ${SRC} ${DEST} -vL --log-file /home/bk_logs/rclone.log

Looking forward to hearing all your advice…
Nghia
trongnghia203@gmail.com

Nuke the space in SRC= /home/backups

@johnpowell
Sorry, my mistake… actually, I didn’t have that space in my script…

But I found the issue now, just add “…” of excluding…: --exclude “bk_logs/

It works. Thank you very much!!!

Nghia
trongnghia203@gmail.com

1 Like