What is the problem you are having with rclone?
hello if i execute the following command from the command line:
rclone copy /mydir/file.jpg gdrive:TEST
the command is executed perfectly and in the TEST directory of GoogleDrive I find the saved image.
If I run the same command line in a bash script script.sh I get this error:
2024/12/30 19:34:52 ERROR : Attempt 1/3 failed with 1 errors and: couldn't list directory: Get ‘https://www.googleapis.com/drive/v3/files?alt=json&fields=files(id%2Cname.........shortcut')&supportsAllDrives=true": couldn't fetch token: invalid_grant: maybe token expired? - try refreshing with "rclone config reconnect gdrive:"
Run the command 'rclone version' and share the full output of the command.
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Paste command here
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
### Double check the config for sensitive info before posting publicly