Add --include-if-present
or a way to generate list of files to backup
#1382
Labels
C-enhancement
Category: New feature or request
Milestone
Hi,
Finally I've got some time to try migrating backups from
restic
torustic
again. Right now it's big enough amount of shell code that generates CLI opts forrestic
. I'm very impressed withrustic
config file and would like to use it. Ideally without passing any extra CLI args if possibleOne of features that I use extensively is
--exclude-if-present
. Basically I've a few 'tiers' of data on all machines that I backup:CACHEDIR.TAG
-- cache and stuff that I don't want to backup.bckexclude_garbage
-- I don't backup this to main repo. But it still has some value. For example~/tmp
or~/Downloads
.So for my
main
repo I will exclude both. But at the same time I've second repository that I don't mirror to cloud. And I would like to backup only directories that were skipped due to.bckexclude_garbage
. Yes. It makes restore more difficult. But still better than not have this data at all.For
restic
I'm doing this usingfind /path -name ...
and generating CLI args. Forrustic
I think that I can generate'profile.toml
file before doing actual backup. But maybe it makes sense to have it inrustic
itself. For example that--include-if-present
option.Basically such
--include-if-present <filename>
should assume everything as exclude unless there isfilename
in any parent directory.I'm not fully aware of all rustic features. Maybe it's easier to achieve same results using other ways.
The text was updated successfully, but these errors were encountered: