In github issue #5209 we had the idea of making rclone config redacted for making a config file suitable for posting online for support purposes.
Once this is out we can adjust the support template to suggest people use it and it should hopefully save everyone lots of time.
However it needs testing! So please run rclone config redacted on your config file(s) and check it redacts everything it should. If it doesn't then please post here with what went wrong.
It looks OK for the 382(!) remotes I have in my config file but there are bound to be things I've forgotten.
i like your concept, the problem is rclone.config would prevent all 40 of your remotes and all 382 of ncw.
most times, just one or two remotes are needed.
how about something rclone sync source: dest: --report
which would output
rclone version
the redacted config for source:
the redacted config for dest:
maybe enable -vv output
create a haiku poem
maybe have option --report=report.txt.
then have the user upload or paste that file or contents to forum.
i know just uploading a file is not too helpful, but you get the idea?
if rclone errors out, print some message.
"If you want to post at https://forum.rclone.org, re-run your command with --report and post the full output at the forum"
Ultimately that would open a pre-filled in page on the forum, or an minimum give something to cut and paste with the info from rclone version (which now has all the OS info in rclone config redacted
The idea of --report to trigger this is a great idea.
We could even get the config wizard to fill in some of the gaps.
Whether we could get this to include the log I don't know.
Rclone could use the same mechanism that it uses to open the auth page to open a browser window with a filled in template. We probably need to prompt the user to create a forum user first.
No we wouldn't need that. We'd rely on the users browser being logged in. Try clicking on the link above and you'll see what I mean. You can on linux run xdg-open 'https://....' and open the link. There is an equivalent for Windows but I don't know what it is I think it is start.
I suggest a little bit of config wizard here...
$ rclone sync blah: blah2: --report
Support report gathered.
Please add a title to your request
Title> the thing doesn't work
What next?
s) save report to a file
v) view report on screen
p) post report to the forum - you'll need to be logged in to the forum first
q) quit
Or something! The last menu repeats so the user can choose different options.
yes, that is something!, not overly complex to code and release.
however, without that log, we have basic static info that would catch basic syntax errors.
in my backup script, i have a function that process the rclone debug file.
the function takes the debug log file and creates a shortened version, let's call it rshort.log
for example, no need to list every file compared, copied, checked and hashed.
then i get that as an email and can quickly understand.
basically, the contents are:
the top debug lines.
the bottom stat lines.
from the middle of the log, text lines, such as ERROR, pacer and other such text.
and that gets us back to the issue of not revleaing private info.
so we would have to sanitize dir/file names.
I've merged rclone config redacted to master now which means it will be in the latest beta in 15-30 minutes and released in v1.64
Hopefully I'll have time to work on the --report flag too.
This will need to look at the command line and try to find any remotes. It can then look in the config for each of these remotes and try and find any related ones recursively, eg for union, crypt etc.
It should probably report any env vars which start with RCLONE too, though these potentially need sanitizing too if they are backend config.