What is the problem you are having with rclone?
rclone duplicates file, if uploaded from 2 different sources/machines at the same time. I would like if a file with the same path/name is currently uploaded, it should skip that file, if possible in anyway?
Run the command 'rclone version' and share the full output of the command.
Both machines are running exact same version:
rclone v1.58.1
- os/version: ubuntu 18.04 (64 bit)
- os/kernel: 4.15.0-180-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.9
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Encrypted google team-drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Machine 1
rclone copy /home/user/test.mkv mydrive_secret: --drive-stop-on-upload-limit -vv -P
Machine 2 (2 minutes after machine 1 is started)
rclone copy /home/user/test.mkv mydrive_secret: --drive-stop-on-upload-limit -vv -P
And when both are done i run
rclone ls mydrive_secret:
And the output is:
8852367382 test.mkv
8852367382 test.mkv
The rclone config contents with secrets removed.
[mydrive]
type = drive
client_id = REMOVED
client_secret = REMOVED
scope = drive
token = {"access_token":"REMOVED","token_type":"Bearer","refresh_token":"REMOVED","expiry":"2022-06-10T16:03:59.683621041Z"}
team_drive = REMOVED
root_folder_id =
[mydrive_secret]
type = crypt
remote = mydrive:secret
password = REMOVED
password2 = REMOVED
A log from the command with the -vv
flag
Both machines have similar log file:
2022/06/10 15:48:25 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "copy" "/home/user/test.mkv" "mydrive_secret:" "--drive-stop-on-upload-limit" "-vv" "-P" "--log-file=rclone.log"]
2022/06/10 15:48:25 DEBUG : Creating backend with remote "/home/user/test.mkv"
2022/06/10 15:48:25 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2022/06/10 15:48:25 DEBUG : fs cache: adding new entry for parent of "/home/user/test.mkv", "/home/user"
2022/06/10 15:48:25 DEBUG : Creating backend with remote "mydrive_secret:"
2022/06/10 15:48:25 DEBUG : Creating backend with remote "mydrive:secret"
2022/06/10 15:48:25 DEBUG : mydrive: detected overridden config - adding "{-LSY5}" suffix to name
2022/06/10 15:48:25 DEBUG : fs cache: renaming cache item "mydrive:secret" to be canonical "mydrive{-LSY5}:secret"
2022/06/10 15:48:26 DEBUG : test.mkv: Need to transfer - File not found at Destination
2022/06/10 15:48:26 DEBUG : REMOVED-HASH: Sending chunk 0 length 8388608
2022/06/10 15:48:27 DEBUG : REMOVED-HASH: Sending chunk 8388608 length 8388608
....................
....................
....................
2022/06/10 16:06:56 DEBUG : REMOVED-HASH: Sending chunk 8849981440 length 4547206
2022/06/10 16:06:58 DEBUG : test.mkv: md5 = REMOVED-HASH OK
2022/06/10 16:06:58 INFO : test.mkv: Copied (new)
2022/06/10 16:06:58 INFO :
Transferred: 8.246 GiB / 8.246 GiB, 100%, 6.984 MiB/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 18m33.1s
2022/06/10 16:06:58 DEBUG : 5 go routines active