Rclone is not backing up files

What is the problem you are having with rclone?

Rclone is unable to move files to a Google Drive Backend

This is happening for at least a dozen files or so, and I can't determine why this is not working properly.

Run the command 'rclone version' and share the full output of the command.

$ rclone --version
rclone v1.57.0
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-100-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive - Shared Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

#!/bin/bash
RCLONE_CONFIG=/home/me/.config/rclone/rclone.conf
export RCLONE_CONFIG
set -x
screen -S rclone-media-tv -Q select . ;
status=$?
if [ $status -eq 0 ]
then
 exit 0
else
 /usr/bin/screen -S rclone-media-tv -fa -d -m /usr/bin/rclone move '/mnt/pool/media/TV Shows' 'gmedia:/TV Shows'  -P --log-file /var/log/rclone/tv.log -v --exclude-from /etc/rclone/exclude-tvmovie.txt --delete-empty-src-dirs --checkers 4 --min-age 48h --drive-chunk-size 128M
fi
#!/bin/bash
RCLONE_CONFIG=/home/me/.config/rclone/rclone.conf
export RCLONE_CONFIG
set -x
screen -S rclone-media-movies -Q select . ;
status=$?
if [ $status -eq 0 ]
then
 echo "screen is running"
 exit 0
else
 /usr/bin/screen -S rclone-media-movies -fa -d -m /usr/bin/rclone move '/mnt/pool/media/Movies' 'gmedia:/Movies'  -P --log-file /var/log/rclone/media.log -v --exclude-from /etc/rclone/exclude-tvmovie.txt --delete-empty-src-dirs --checkers 4 --min-age 48h --drive-chunk-size 128M --max-duration 10h
fi

The rclone config contents with secrets removed.

[gdrivemedia]
type = drive
scope = drive
token = 
team_drive = 
client_id = 
client_secret = 

[gmedia]
type = crypt
remote = gdrivemedia:media
filename_encryption = standard
directory_name_encryption = true
password = 
password2 = 

A log from the command with the -vv flag

2022/01/02 09:00:02 ERROR : tick, tick.BOOM! (2021)/tick,.tick….BOOM!.2021.WEBDL-1080p.mkv: Failed to copy: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=OMIT": context deadline exceeded
2022/01/02 09:00:02 ERROR : tick, tick.BOOM! (2021)/tick,.tick….BOOM!.2021.WEBDL-1080p.mkv: Not deleting source as copy failed: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=OMIT": context deadline exceeded

hello,
might have something to with --max-duration 10h

"Rclone won't exit with an error if the transfer limit is reached."

so it could be that rclone hit that 10h limit and then continues to try to transfer files.

can you post the top 30 lines of the debug log and the first time you got that error in the debug log.
that will provide the timestamps

might want to take a read of
https://forum.rclone.org/t/max-duration-and-retries-not-working-correctly/27738

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.