What is the problem you are having with rclone?
When i upload files to my mount, i first transfer them to a local cache folder. As this local cache folder is on the same drive as the files that i want to move, i expect this transfer to be instant. After the files are in the transfer folder i except that the move to the mounted drive at a slower tempo.
What happens now is that it seems like the files are copied and then removed and after a long of transferring the actual upload to the mount finally starts.
Is this expected behaviour and how could i prevent this?
What i want to do is create a mount command thath is able to move my files with the max amount of bandwidth that i specified.
What is your rclone version (output from rclone version
)
rclone v1.55.1
- os/type: windows
- os/arch: amd64
- go/version: go1.16.3
- go/linking: dynamic
- go/tags: cmount
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10, 64 bit
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
)
mount gdrive: Y: --volname Drive_Uploaden --config C:\Plex\Rclone\rclone.conf --cache-dir=G:\Uploaden\Cache_normaal --vfs-read-chunk-size=32M --vfs-cache-mode minimal --drive-chunk-size=1G --drive-upload-cutoff=1G --no-traverse --drive-stop-on-upload-limit --rc --rc-web-gui --rc-user=XXX --rc-pass=XXX --rc-serve --rc-addr :5571 --log-file=D:\Logs\uploadenlog.txt --dir-cache-time=96h --bwlimit 12M
The rclone config contents with secrets removed.
[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2021-05-10T13:58:18.2281851+02:00"}
A log from the command with the -vv
flag
2021/05/10 13:36:09 DEBUG : /: >Releasedir: errc=0
2021/05/10 13:36:09 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:09 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:09 DEBUG : /test.mkv: Write: ofst=0, fh=0x0
2021/05/10 13:36:09 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=0
2021/05/10 13:36:09 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:09 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:09 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:09 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:09 DEBUG : /test.mkv: Write: ofst=1048576, fh=0x0
2021/05/10 13:36:09 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=1048576
2021/05/10 13:36:09 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:09 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=2097152, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=2097152
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/05/10 13:36:10 DEBUG : /: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/05/10 13:36:10 DEBUG : /: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /: Opendir:
2021/05/10 13:36:10 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/05/10 13:36:10 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/05/10 13:36:10 DEBUG : /: >Opendir: errc=0, fh=0x1
2021/05/10 13:36:10 DEBUG : /: Releasedir: fh=0x1
2021/05/10 13:36:10 DEBUG : /: >Releasedir: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=3145728, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=3145728
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=4194304, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=4194304
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=5242880, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=5242880
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=6291456, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=6291456
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=7340032, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=7340032
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=8388608, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=8388608
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=9437184, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=9437184
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=10485760, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=10485760
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=11534336, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=11534336
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/05/10 13:36:10 DEBUG : /: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/05/10 13:36:10 DEBUG : /: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /: Opendir:
2021/05/10 13:36:10 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/05/10 13:36:10 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2021/05/10 13:36:10 DEBUG : /: >Opendir: errc=0, fh=0x1
2021/05/10 13:36:10 DEBUG : /: Releasedir: fh=0x1
2021/05/10 13:36:10 DEBUG : /: >Releasedir: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=12582912, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=12582912
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=13631488, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=13631488
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=14680064, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=14680064
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=15728640, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=15728640
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576
2021/05/10 13:36:10 DEBUG : /test.mkv: Getattr: fh=0x0
2021/05/10 13:36:10 DEBUG : /test.mkv: >Getattr: errc=0
2021/05/10 13:36:10 DEBUG : /test.mkv: Write: ofst=16777216, fh=0x0
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): _writeAt: size=1048576, off=16777216
2021/05/10 13:36:10 DEBUG : test.mkv(0xc0005f33c0): >_writeAt: n=1048576, err=<nil>
2021/05/10 13:36:10 DEBUG : /test.mkv: >Write: n=1048576