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