Rclone RCD - ignoring "deletebefore": true,

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

I have a management server controlling the replication of data between 3 servers via the use of RCD. The issue im facing is that it is ignoring the "deletebefore": true variable. I've confirmed that the normal rclone sync method using the same variables work, just not with this method.

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

rclone v1.70.3

  • os/version: debian 12.7 (64 bit)
  • os/kernel: 6.14.8-2-pve (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.4
  • go/linking: static
  • go/tags: none

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

NA/ Local Storage (ext4/SFTP)

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

Management Server issuing command to server one too replicate to server two

curl -X POST "http://10.0.8.100:5572/sync/sync"
-H "Content-Type: application/json"
-d '{
"srcFs": "/mnt/pool/",
"dstFs": "NAS02:/mnt/data/",
"_config":{
"DryRun": false,
"fastList": true,
"checkFirst": true,
"transfers": 6,
"checkers": 20,
"sizeOnly": true,
"ignoreChecksum": true,
"bufferSize": "512M",
"useMmap": true,
"retries": 1,
"metadata": true,
"noUpdateDirModTime": true,
"noUpdateModTime": true,
"orderBy": "size,desc",
"tpsLimit": 0,
"tpsLimitBurst": 0,
"bwLimit": "off",
"deletebefore": true,
"trackRenames": false,
"ConnectTimeout": 60000000000,
"Timeout": 300000000000,
"HumanReadable": true,
"DataRateUnit": "megabytes",
"TrackRenamesStrategy": "size",
"TerminalColorMode": "AUTO",
"logFile": "datacopylogfile-all-NAS01-NAS02.log",
"logLevel": "INFO"
},
"filters": {
"excludeRule": [
"@RecRec*/",
".streams/
",
".log",
"Download/
",
"SHARE/**"
]
},
"_async": true
}'

Paste command here

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[NAS01]
type = sftp
host = XXX
pass = XXX
shell_type = unix
use_insecure_cipher = true
disable_hashcheck = true
key_file = /root/.ssh/id_rsasftpSetModTime": false,
sftpDisableConcurrentWrites = true
sftpDisableConcurrentReads = true
sftpUseFstat = false
sftpDisableHashCheck = true
sftpChunkSize = 32M
sftpConcurrency = 16
sftpSetModTime = false
sftpCompression = false
[NAS01-10GB]
type = sftp
host = XXX
pass = XXX
shell_type = unix
use_insecure_cipher = true
disable_hashcheck = true
key_file = /root/.ssh/id_rsa
sftpSetModTime" = false,
sftpDisableConcurrentWrites = true
sftpDisableConcurrentReads = true
sftpUseFstat = false
sftpDisableHashCheck = true
sftpChunkSize = 32M
sftpConcurrency = 16
sftpSetModTime = false
sftpCompression = false
[NAS02]
type = sftp
host = XXX
pass = XXX
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum
key_file = /root/.ssh/id_rsa
sftpSetModTime" = false,
sftpDisableConcurrentWrites = true
sftpDisableConcurrentReads = true
sftpUseFstat = false
sftpDisableHashCheck = true
sftpChunkSize = 32M
sftpConcurrency = 16
sftpSetModTime = false
sftpCompression = false
[NAS02-10GB]
type = sftp
host = XXX
pass = XXX
shell_type = unix
use_insecure_cipher = true
disable_hashcheck = true
key_file = /root/.ssh/id_rsa
sftpSetModTime" = false,
sftpDisableConcurrentWrites = true
sftpDisableConcurrentReads = true
sftpUseFstat = false
sftpDisableHashCheck = true
sftpChunkSize = 32M
sftpConcurrency = 16
sftpSetModTime = false
sftpCompression = false
[NAS03]
type = sftp
host = XXX
pass = XXX
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum
key_file = /root/.ssh/id_rsa
sftpSetModTime" = false,
sftpDisableConcurrentWrites = true
sftpDisableConcurrentReads = true
sftpUseFstat = false
sftpDisableHashCheck = true
sftpChunkSize = 32M
sftpConcurrency = 16
sftpSetModTime = false
sftpCompression = false
[NAS03-10GB]
type = sftp
host = XXX
pass = XXX
shell_type = unix
use_insecure_cipher = true
disable_hashcheck = true
key_file = /root/.ssh/id_rsa
sftpSetModTime" = false,
sftpDisableConcurrentWrites = true
sftpDisableConcurrentReads = true
sftpUseFstat = false
sftpDisableHashCheck = true
sftpChunkSize = 32M
sftpConcurrency = 16
sftpSetModTime = false
sftpCompression = false

Paste config here

A log from the command that you were trying to run with the -vv flag

Paste  log here

afiak, that does nothing, should be disable_concurrent_writes
same applies to most of the other flags

Resolved: Rclone RCD - ignoring "deletebefore": true, · Issue #8769 · rclone/rclone

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