Using one-file-system = true
with a sources of /
causes nothing to be found
#1397
Labels
S-triage
Status: Waiting for a maintainer to triage this issue/PR
Seems I've hit a bit of an edge case. I appear to have narrowed it down to the
one-file-system
option, but it wouldn't surprise me if it has something to do with my excludes too.Situation: I'm trying to backup my
/
root directory for a system files backup. I already have other backups for each mounted drive, so I want to useone-file-system
so that I don't have to worry about potential leaks into backing up other drives, also virtual file systems. So I construct aSys.toml
as follows:With a
/
directory structure as followsRunning
rustic -P Sys --log-level debug -n backup
as a non-root user leads then to:(This run was after running once before, so it already has the two files it can do)
So a backup just containing two empty files:
Which is interesting in its own way since I saw there's an open bug about rustic not copying empty directories, and
/boot
is an empty directory here due to being another mount point.Removing
one-file-system
immediately causes the command to do the expected thing, as does not listing/
. So for now my solution is to explicitly list out every directory under/
to attempt to backup. Note thatsources = ['/', '/usr']
for example actually continues to be broken in this manner, so/
needs to not be in thesources
array.The text was updated successfully, but these errors were encountered: