I’m trying to do something like:
restic -r /path/to/repo backup \
/path/one \
/path/two \
--stdin-filename three --stdin-from-command command-1 \
--stdin-filename four --stdin-from-command command-2
This doesn’t work for a bunch of reasons. My understanding is that multiple paths is fine, but --stdin-from-command
can’t be used alongside any other source, including a second --stdin-from-command
. I also think I understand that if I split it out into multiple restic
invocations, that will create snapshot clutter and extra interactive prompting.
My current approach is:
command-1 > /path/three
command-2 > /path/four
restic -r /path/to/repo backup \
/path/one \
/path/two \
/path/three \
/path/four
Which has the downside of always appearing to restic to be newly updated, bloating backups. I can improve that with some manual change detection scripting, but, before I get into that, two questions:
Do I understand this correctly, and is there a better approach?
(restic version
: restic 0.18.0 compiled with go1.24.1 on darwin/amd64
)