Hi there, I got rclone working with dropbox and google drive on a raspberry pi last year sometime, but now it doesn’t seem to work properly with google drive. If i ssh into the pi, i can run the following command and it works.
rclone copyto GD_remote:/PVJclientMedia /media/internal/images --include ‘*.{jpg,JPG,bmp,BMP,png,PNG}’
Running the command with the “-vv” flag gave me the following output.
2019/04/02 18:50:27 DEBUG : rclone: Version “v1.40” starting with parameters [“rclone” “copyto” “GD_remote:/PVJclientMedia” “/media/internal/images” “–include” “*.{jpg,JPG,bmp,BMP,png,PNG}” “-vv”]
2019/04/02 18:50:27 DEBUG : Using config file from “/home/pi/.config/rclone/rclone.conf”
2019/04/02 18:50:28 INFO : Local file system at /media/internal/images: Modify window is 1ms
2019/04/02 18:50:29 INFO : Local file system at /media/internal/images: Waiting for checks to finish
2019/04/02 18:50:29 INFO : Local file system at /media/internal/images: Waiting for transfers to finish
2019/04/02 18:50:29 INFO : test.jpg: Copied (new)
2019/04/02 18:50:29 INFO :
Transferred: 890.547 kBytes (483.769 kBytes/s)
Errors: 0
Checks: 0
Transferred: 1
Elapsed time: 1.8s
2019/04/02 18:50:29 DEBUG : 4 go routines active
2019/04/02 18:50:29 DEBUG : rclone: Version “v1.40” finishing with parameters [“rclone” “copyto” “GD_remote:/PVJclientMedia” “/media/internal/images” “–include” “*.{pg,png,bmp,JPG,PNG,BMP}” “-vv”]
However, if I run the same command from the following bash script, nothing appears to happen.
#!/bin/bash
#kill all running tasks to get enough resources
/var/www/sync/stopall &
rclone copyto GD_remote:/PVJclientMedia /media/internal/images --include ‘*.{jpg,png,bmp,JPG,PNG,BMP}’
rclone copyto GD_remote:/PVJclientMedia /media/internal/video --include ‘*.{mp4,mov,MP4,MOV}’
rclone copyto GD_remote:/PVJclientMedia /media/internal/pdf --include ‘*.{pdf,PDF}’
rclone copyto GD_remote:/PVJclientMedia /media/internal/audio --include ‘*.{mp3,MP3}’
exit 0
my rclone config file is as follow :
[GD_remote]
type = drive
client_id =
client_secret =
scope = drive
root_folder_id =
service_account_file =
token = {“access_token”:“adfadf”,“token_type”:“Bearer”,“refresh_token”:“1adf”,“expiry”:"2019-04-0$
[DB_remote]
type = dropbox
client_id =
client_secret =
token = {“access_token”:“adf”,“token_type”:“bearer”,“expiry”:“0001-01-01T00:00:00Z”}
Any thoughts on why it won’t work from bash?
Thank you,
Sean