Large file isn't copied to WebDAV Nextcloud Drive, but to root cache!?

What is the problem you are having with rclone?

I try to copy a 10GB Backup.img file to a mounted Nextcloud Drive. The Nextcloud Server is operated at another Raspberry Pi in my home network (NC DATA Storage on external SSD at this Raspberry)

cp /media/pi/usb-stick/backup/kellerpi-1.img /media/pi/mnt_NC-BACKUP/kellerpi-1/`date +"%Y-%m-%d"`

The file get's copied, not to the Nextcloud but to

/root/.cache/rclone/vfs/NEXTCLOUD/BACKUP/kellerpi-1/2020-11-06/kellerpi-1.img

instead.

Granted, the connection to the Nextcloud doesn't seem very stable and is a bit slow, yet I don't understand why it only copies the file to the cache and doesn't place it on the hard drive?

The Nextcloud settings would allow files up to 20GB. The date folder will be created there properly via a preceding script ... only this large image file seems to be too large to process!

What is your rclone version (output from rclone version)

rclone Version 1.53.2

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Rasbperry Pi 3B+ 1GB, Debian Buster

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

Mounted Nextcloud via WebDAV

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

rclone mount NEXTCLOUD:BACKUP /media/pi/mnt_NC-BACKUP --no-check-certificate --allow-non-empty --allow-other --vfs-cache-mode writes --log-file=/media/pi/usb-stick/log/rclonemount.txt --log-level DEBUG &

The rclone config contents with secrets removed.

[NEXTCLOUD]
type = webdav
url = https://192.168.0.18/remote.php/dav/files/ncp/
vendor = nextcloud
user = ncp
pass = VyRqm........
no-check-certificate = true

A log from the command with the -vv flag

2020/11/06 09:13:12 DEBUG : rclone: Version "v1.53.2" starting with parameters ["rclone" "mount" "NEXTCLOUD:BACKUP" "/media/pi/mnt_NC-BACKUP" "--no-check-certificate" "--allow-non-empty" "--allow-other" "--vfs-cache-mode" "writes" "--log-file=/media/pi/usb-stick/log/rclonemount.txt" "--log-level" "DEBUG"]
2020/11/06 09:13:12 DEBUG : Creating backend with remote "NEXTCLOUD:BACKUP"
2020/11/06 09:13:12 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/11/06 09:13:39 INFO  : webdav root 'BACKUP': poll-interval is not supported by this remote
2020/11/06 09:13:39 DEBUG : vfs cache: root is "/root/.cache/rclone/vfs/NEXTCLOUD/BACKUP"
2020/11/06 09:13:39 DEBUG : vfs cache: metadata root is "/root/.cache/rclone/vfs/NEXTCLOUD/BACKUP"
2020/11/06 09:13:39 DEBUG : Creating backend with remote "/root/.cache/rclone/vfs/NEXTCLOUD/BACKUP"
2020/11/06 09:13:39 DEBUG : webdav root 'BACKUP': Mounting on "/media/pi/mnt_NC-BACKUP"
2020/11/06 09:13:39 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/06 09:13:39 DEBUG : : Root: 
2020/11/06 09:13:39 DEBUG : : >Root: node=/, err=<nil>
2020/11/06 09:13:39 DEBUG : /: Lookup: name="BDMV"
2020/11/06 09:14:06 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Lookup: name=".xdg-volume-info"
2020/11/06 09:14:06 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:14:06 DEBUG : /: Lookup: name="autorun.inf"
2020/11/06 09:14:06 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:14:06 DEBUG : /: Lookup: name=".Trash"
2020/11/06 09:14:06 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:14:06 DEBUG : /: Lookup: name=".Trash-1000"
2020/11/06 09:14:06 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: ReadDirAll: 
2020/11/06 09:14:06 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Attr: 
2020/11/06 09:14:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:06 DEBUG : /: Lookup: name="autorun.inf"
2020/11/06 09:14:06 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:14:06 DEBUG : : Statfs: 
2020/11/06 09:14:12 DEBUG : /: Lookup: name="kellerpi-1"
2020/11/06 09:14:12 DEBUG : /: >Lookup: node=kellerpi-1/, err=<nil>
2020/11/06 09:14:12 DEBUG : kellerpi-1/: Attr: 
2020/11/06 09:14:12 DEBUG : kellerpi-1/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:12 DEBUG : kellerpi-1/: Lookup: name="2020-11-06"
2020/11/06 09:14:33 DEBUG : : >Statfs: stat={Blocks:274878347434 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2020/11/06 09:14:33 DEBUG : /: Attr: 
2020/11/06 09:14:33 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:14:39 DEBUG : kellerpi-1/: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:14:39 DEBUG : kellerpi-1/: Mkdir: name="2020-11-06"
2020/11/06 09:14:39 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/06 09:15:06 DEBUG : kellerpi-1: Added virtual directory entry vAdd: "2020-11-06"
2020/11/06 09:15:06 DEBUG : kellerpi-1/: >Mkdir: node=kellerpi-1/2020-11-06/, err=<nil>
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: Attr: 
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:15:06 DEBUG : /: Lookup: name="kellerpi-1"
2020/11/06 09:15:06 DEBUG : /: >Lookup: node=kellerpi-1/, err=<nil>
2020/11/06 09:15:06 DEBUG : kellerpi-1/: Attr: 
2020/11/06 09:15:06 DEBUG : kellerpi-1/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: Setattr: stat=Setattr [ID=0x136 Node=0x3 Uid=0 Gid=0 Pid=1958] mode=drwxrwx--- handle=INVALID-0x0
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: >Setattr: err=<nil>
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: Attr: 
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:15:06 DEBUG : kellerpi-1/: Lookup: name="2020-11-06"
2020/11/06 09:15:06 DEBUG : kellerpi-1/: >Lookup: node=kellerpi-1/2020-11-06/, err=<nil>
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: Attr: 
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:15:06 DEBUG : kellerpi-1/2020-11-06/: ReadDirAll: 
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: >ReadDirAll: item=0, err=<nil>
2020/11/06 09:15:33 DEBUG : /: Lookup: name="kellerpi-1"
2020/11/06 09:15:33 DEBUG : /: >Lookup: node=kellerpi-1/, err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/: Attr: 
2020/11/06 09:15:33 DEBUG : kellerpi-1/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/: Lookup: name="2020-11-06"
2020/11/06 09:15:33 DEBUG : kellerpi-1/: >Lookup: node=kellerpi-1/2020-11-06/, err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: Attr: 
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: Lookup: name="kellerpi-1.img"
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: Lookup: name="kellerpi-1.img"
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: >Lookup: node=<nil>, err=no such file or directory
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: Create: name="kellerpi-1.img"
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: Open: flags=O_WRONLY|O_CREATE|O_EXCL|0x20000
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: newRWFileHandle: 
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): openPending: 
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: vfs cache: truncate to size=0
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06: Added virtual directory entry vAdd: "kellerpi-1.img"
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): >openPending: err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: >newRWFileHandle: err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06: Added virtual directory entry vAdd: "kellerpi-1.img"
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: >Open: fd=kellerpi-1/2020-11-06/kellerpi-1.img (rw), err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/: >Create: node=kellerpi-1/2020-11-06/kellerpi-1.img, handle=&{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}, err=<nil>
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: Attr: 
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: >Attr: a=valid=1s ino=0 size=0 mode=-rw-r--r--, err=<nil>
2020/11/06 09:15:33 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: Write: len=4096, offset=0
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): _writeAt: size=4096, off=0
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): >_writeAt: n=4096, err=<nil>
2020/11/06 09:15:33 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: >Write: written=4096, err=<nil>
2020/11/06 09:15:33 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: Write: len=131072, offset=1048576
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): _writeAt: size=131072, off=1048576
2020/11/06 09:15:33 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): >_writeAt: n=131072, err=<nil>

.
.
.
.
2020/11/06 09:21:20 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: >Write: written=8192, err=<nil>
2020/11/06 09:21:20 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: Write: len=12288, offset=11141120000
2020/11/06 09:21:20 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): _writeAt: size=12288, off=11141120000
2020/11/06 09:21:20 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): >_writeAt: n=12288, err=<nil>
2020/11/06 09:21:20 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: >Write: written=12288, err=<nil>
2020/11/06 09:21:22 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: Setattr: a=Setattr [ID=0x11c56 Node=0x4 Uid=0 Gid=0 Pid=1966] size=11149508608 handle=0x2 lockowner
2020/11/06 09:21:22 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: Truncating 1 file handles
2020/11/06 09:21:22 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: vfs cache: truncate to size=11149508608
2020/11/06 09:21:22 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: >Setattr: err=<nil>
2020/11/06 09:21:22 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: Attr: 
2020/11/06 09:21:22 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: >Attr: a=valid=1s ino=0 size=11149508608 mode=-rw-r--r--, err=<nil>
2020/11/06 09:21:23 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: Flush: 
2020/11/06 09:21:23 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): RWFileHandle.Flush
2020/11/06 09:21:23 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: >Flush: err=<nil>
2020/11/06 09:21:24 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: Release: 
2020/11/06 09:21:24 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): RWFileHandle.Release
2020/11/06 09:21:24 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): close: 
2020/11/06 09:21:27 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img: vfs cache: setting modification time to 2020-11-06 09:21:22.920614807 +0100 CET m=+490.275627549
2020/11/06 09:21:27 INFO  : kellerpi-1/2020-11-06/kellerpi-1.img: vfs cache: queuing for upload in 5s
2020/11/06 09:21:27 DEBUG : kellerpi-1/2020-11-06/kellerpi-1.img(0x2447410): >close: err=<nil>
2020/11/06 09:21:27 DEBUG : &{kellerpi-1/2020-11-06/kellerpi-1.img (rw)}: >Release: err=<nil>
2020/11/06 09:21:31 DEBUG : vfs cache: cleaner exiting
2020/11/06 09:21:32 DEBUG : rclone: Version "v1.53.2" finishing with parameters ["rclone" "mount" "NEXTCLOUD:BACKUP" "/media/pi/mnt_NC-BACKUP" "--no-check-certificate" "--allow-non-empty" "--allow-other" "--vfs-cache-mode" "writes" "--log-file=/media/pi/usb-stick/log/rclonemount.txt" "--log-level" "DEBUG"]

You have writes on so it copies locally first and then uploads.

Hi Animosity,

thank you for your feedback.

I have to set --vfs-chache-mode to writes or to full 'cause otherwise I got an error message: can't seek.

It's ok for me when the 10GB img file is copied locally first (btw. is it possible to define a specific cache directory for rclone?) ... but even when I don't unmount and keep the remote drive mounted - why isn't the cached img file moving to the remote drive? When will the copy/moving command will be procedured?

Can't this 10GB file be moved in small parts to the mounted drive? Does the copied file has to be placed within cache dir prior in full size?

I read about rclone copy. Would it make more sense for my usage to use rclone copy instead of cp as command? Maybe with the optional --no-traverse option?!?

You can use:

--cache-dir string                   Directory rclone will use for caching.

I'm not sure what you mean here. It copies locally first and uploads it to the remote.

Yes, it's full size. You can't change that.

I don't copy anything to my mount as I use rclone copy for upload to my remote.

yes, that would be a good idea.

for a given remote, you can have multiple mounts optmized for different use-cases.
for example, for media files.
one mount optmimzed for uploading, no vfs.
one mount optimized for streaming, vfs and read-only.

Ok - now things are getting a little bit clearer for me and I have the feeling that I maybe misunderstood the mount usage:

All i want to do, is to copy a 10GB Live-Backup.img of RPi1 (wich i created and saved before to an USB-Stick on RPi1) to my Nextcloud wich is operated by my RPi2 (with NC-Data storage on an external SSD at RPi2).

Therefore, I thougth i have to mount my Nextcloud via WebDav-Link on RPi1 first.

But maybe I don't have to mount this external drive to copy this file to this place? Is it possible to access/write to this Nextcloud WebDav via rclone copy command?

yeah, rclone can be cofusing at first.

for nextcloud, create a webdav remote
https://rclone.org/webdav/

Create the remote - lets say you called it "nextcloud" then you copy files to it with one of these

rclone copy -P /path/to/file nextcloud:path/to/dir
rclone copy -P /path/to/dir nextcloud:path/to/dir

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