What is the problem you are having with rclone?
Using rclone sync --links
together with filtering (e.g. --include
or --files-from
) fails to create .rclonelink files at the destination. How can I make this work? Or maybe this is a bug?
Run the command 'rclone version' and share the full output of the command.
rclone 1.61.1
- os/version: darwin 13.3.1 (64 bit)
- os/kernel: 22.4.0 (arm64)
- os/type: darwin
- os/arch: arm64
- go/version: go1.19.5
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
pCloud
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync --log-level INFO --files-from-raw files.txt /Users/brechtm/Documents/Routes crypt:Backup/Test/latest
The rclone config contents with secrets removed.
[pcloud]
type = pcloud
hostname = eapi.pcloud.com
token = ...
[crypt]
type = crypt
remote = pcloud:.crypt
filename_encryption = standard
directory_name_encryption = true
password = ...
password2 = ...
A log from the command with the -vv
flag
Documents/Routes crypt:Backup/Test/latest
2023/05/27 14:53:51 DEBUG : rclone: Version "1.61.1" starting with parameters ["rclone" "sync" "-vv" "--links" "--files-from-raw" "files.txt" "/Users/brechtm/Documents/Routes" "crypt:Backup/Test/latest"]
2023/05/27 14:53:51 DEBUG : Creating backend with remote "/Users/brechtm/Documents/Routes"
2023/05/27 14:53:51 DEBUG : Using config file from "/Users/brechtm/.config/rclone/rclone.conf"
2023/05/27 14:53:51 DEBUG : local: detected overridden config - adding "{XXX}" suffix to name
2023/05/27 14:53:51 DEBUG : fs cache: renaming cache item "/Users/brechtm/Documents/Routes" to be canonical "local{XXX}:/Users/brechtm/Documents/Routes"
2023/05/27 14:53:51 DEBUG : Creating backend with remote "crypt:Backup/Test/latest"
2023/05/27 14:53:51 DEBUG : Creating backend with remote "pcloud:.crypt/XXXXX"
2023/05/27 14:53:52 DEBUG : Directions: Excluded
2023/05/27 14:53:52 DEBUG : Recorded: Excluded
2023/05/27 14:53:52 DEBUG : brechtm.exclude.rclonelink: Excluded
2023/05/27 14:53:52 DEBUG : rclone-develop.rclonelink: Excluded
... (more excluded)
2023/05/27 14:53:52 DEBUG : test.gpx: Excluded
2023/05/27 14:53:52 DEBUG : Encrypted drive 'crypt:Backup/Test/latest': Waiting for checks to finish
2023/05/27 14:53:52 DEBUG : Encrypted drive 'crypt:Backup/Test/latest': Waiting for transfers to finish
2023/05/27 14:53:52 DEBUG : Waiting for deletions to finish
2023/05/27 14:53:52 INFO : There was nothing to transfer
2023/05/27 14:53:52 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 0.7s
files.txt:
rclone-develop
brechtm.exclude
When I add the .rclonelink extension to these filenames in files.txt, the files aren't even listed in the debug log.
EDIT: An interesting observation is that for --include
and --include-from
, adding brechtm.exclude*
(note the asterisk) will create the .rclonelink file on the remote. This doesn't work for --files-from-raw
.