What is the problem you are having with rclone?
I have a elude.txt file, that when I run rclone sync src dst --exclude-from exclude.txt
works correctly, but I can't get this to work as an environment variable, such that I can run rclone sync src dst
and still ignore those in elude.txt
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
- os/version: darwin 12.7.4 (64 bit)
- os/kernel: 21.6.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.22.1
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Irrelevant as this is all local, though I would assume it's the same in Google Drive, and all others.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync src dst --exclude-from exclude.txt
and replace with
rclone sync src dst
The rclone config contents with secrets removed.
{
"DEFAULT": {
"RCLONE_EXCLUDE": "'.DS_Store'",
"RCLONE_EXCLUDE_FROM": "/Users/name/rclone/exclude.txt",
"RCLONE_FILTER_FROM": "/Users/name/rclone/exclude.txt"
},
DRIVE INFO I AM NOT SHARING, IRRELEVANT TO THIS DISCUSSION
}
}
As you can see, I have three attempts at trying to exclude, but no work, the exclude file is just .DS_Store
A log from the command with the -vv
flag
Not sure what to put here, but on running the command with no explicit call of --exlude-from, the first output is
2024/04/17 15:45:07 DEBUG : .DS_Store: Need to transfer - File not found at Destination
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Elapsed time: 0.0s
so it is clearly not seeing any of these attempts at excluding the file. The rest is some couple hundred lines that I don't think are relevant