Copy to Nextcloud: creating a lot of file versions

What is the problem you are having with rclone?

I'm copying a large amount of data from a QNAP NAS to a Nextcloud instance backed by a remote object storage accessed via FTP)

The path is QNAP -> Nextcloud -> FTP.

Of course you could tell I can go directly from QNAP to FTP, but this backup is something I need to run regularly so I'd like to use the definitive procedure form the beginning.

Using the command below for copying, I noticed several runs (disconnections, power loss) generate a lot of versions on Nextcloud. I wasn't able to investigate on the NC side, but it looks like running multiple times the same command generate a reupload of some files. I know it's an unhelpful sentence when asking for support but I wasn't able to identify the cause so far.

I remember in the past I tried to rsync/robocopy from a windows host to Nextcloud (mounted with raidrive) and I failed miserably because NC via webdav wasn't storing file modification time. I checked some files transferred now with rclone and in Nextcloud I see the correct (original) timestamp of the file, so it doesn't seem the case.

I was wondering if I'm using the correct params for avoiding duplication of data on the storage and duplication of transferred data.

I'm now trying with --size-only and it seems to behave better, that means transferring only files which haven't been uploaded before. But I fear this test can be weak as it wouldn't detect partial or incorrect transfers.

Once I've copied most of the data (2TB) with size only, I'd like to regularly run with -c to check by size and checksum. Will this increase the traffic between Nextcloud and the FTP backend? Being this an object storage I will be charged if NC does a lot of download operations on the files.

Thanks.

What is your rclone version (output from rclone version)

rclone installed via QNAP club repository (link).

rclone v1.56.1
- os/version: qts 4.4.1 (20191206) (64 bit)
- os/kernel: 4.14.24-qnap (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.8
- go/linking: static
- go/tags: none

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

Nextcloud 22.2.0

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

rclone copy /share/Video/record_nvr/ nextcloud:/Video/QNAP/ -v --exclude ".nvr/" --exclude ".@__thumb/" --bwlimit 3M -P --no-check-certificate

Despite the excludes it's still trying to copy some dirs, like:

2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/adefault2021-04-15 13-00-00~13-05-00.avi: Can't follow symlink without -L/--copy-links
2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/a1002021-04-15 13-00-00~13-05-00.avi: Can't follow symlink without -L/--copy-links
2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/adefault2021-04-15 13-05-00~13-10-00.avi: Can't follow symlink without -L/--copy-links
2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/a1002021-04-15 13-05-00~13-10-00.avi: Can't follow symlink without -L/--copy-links
2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/adefault2021-04-15 13-15-00~13-19-56.avi: Can't follow symlink without -L/--copy-links
2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/a1002021-04-15 13-15-00~13-19-56.avi: Can't follow symlink without -L/--copy-links
2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/adefault2021-04-15 13-10-00~13-15-00.avi: Can't follow symlink without -L/--copy-links
2021-11-03 11:16:54 NOTICE: channel1/2021-04-15/13D/.@__thumb/a1002021-04-15 13-10-00~13-15-00.avi: Can't follow symlink without -L/--copy-links

The rclone config contents with secrets removed.

[nextcloud]
type = webdav
url = https://files-video.domain.it/remote.php/webdav/
vendor = nextcloud
user = sync
pass = 12345

Can you run just a rclone ls with -vv on it?

Something like:

-rw-rw-r-- 1 felix felix    0 Nov  3 07:56 'adefault2021-04-15 13-00-00~13-05-00.avi'
felix@gemini:~/test$ rclone ls /home/felix/test
        0 channel1/2021-04-15/13D/.@__thumb/adefault2021-04-15 13-00-00~13-05-00.avi
felix@gemini:~/test$ rclone ls /home/felix/test --exclude ".@__thumb/"
felix@gemini:~/test$ rclone ls /home/felix/test --exclude ".@__thumb/" -vv
2021/11/03 07:57:24 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2021/11/03 07:57:24 DEBUG : Setting --user-agent "animosityapp" from environment variable RCLONE_USER_AGENT="animosityapp"
2021/11/03 07:57:24 DEBUG : Setting --rc-user "felix" from environment variable RCLONE_RC_USER="felix"
2021/11/03 07:57:24 DEBUG : Setting --rc-pass "felix" from environment variable RCLONE_RC_PASS="felix"
2021/11/03 07:57:24 DEBUG : Setting default for drive-pacer-min-sleep="10ms" from environment variable RCLONE_DRIVE_PACER_MIN_SLEEP
2021/11/03 07:57:24 DEBUG : Setting default for drive-pacer-burst="1000" from environment variable RCLONE_DRIVE_PACER_BURST
2021/11/03 07:57:24 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "ls" "/home/felix/test" "--exclude" ".@__thumb/" "-vv"]
2021/11/03 07:57:24 DEBUG : Creating backend with remote "/home/felix/test"
2021/11/03 07:57:24 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2021/11/03 07:57:24 DEBUG : channel1/2021-04-15/13D/.@__thumb: Excluded
2021/11/03 07:57:24 DEBUG : 2 go routines active
felix@gemini:~/test$
$ rclone ls --no-check-certificate  -vv nextcloud:/Video/QNAP/channel1/2020-06-23/09D/
2021/11/06 09:58:26 DEBUG : rclone: Version "v1.56.1" starting with parameters ["rclone" "ls" "--no-check-certificate" "-vv" "nextcloud:/Video/QNAP/channel1/2020-06-23/09D/"]
2021/11/06 09:58:26 DEBUG : Creating backend with remote "nextcloud:/Video/QNAP/channel1/2020-06-23/09D/"
2021/11/06 09:58:26 DEBUG : Using config file from "/share/homes/administrator/.config/rclone/rclone.conf"
2021/11/06 09:58:26 DEBUG : found headers:
2021/11/06 09:58:26 DEBUG : fs cache: renaming cache item "nextcloud:/Video/QNAP/channel1/2020-06-23/09D/" to be canonical "nextcloud:Video/QNAP/channel1/2020-06-23/09D"
167701294 2020-06-23 09-00-00~09-05-00.avi
166396948 2020-06-23 09-05-00~09-10-00.avi
166175302 2020-06-23 09-10-00~09-15-00.avi
165825492 2020-06-23 09-15-00~09-20-00.avi
167303140 2020-06-23 09-20-00~09-25-00.avi
168346274 2020-06-23 09-25-00~09-30-00.avi
167489062 2020-06-23 09-30-00~09-35-00.avi
166799712 2020-06-23 09-35-00~09-40-00.avi
167870980 2020-06-23 09-40-00~09-45-00.avi
166177170 2020-06-23 09-45-00~09-50-00.avi
170281858 2020-06-23 09-50-00~09-55-00.avi
166315612 2020-06-23 09-55-00~10-00-00.avi
2021/11/06 09:58:27 DEBUG : 3 go routines active

I just found out --size-only is causing a lot of downloaded data from the object storage :frowning:

I must correct my self on this as the dedicated page says:

Plain WebDAV does not support modified times. However when used with Owncloud or Nextcloud rclone will support modified times.

(RTFM).

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