Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustic backup always show 1 dir as changed #541

Closed
aawsome opened this issue Mar 27, 2023 · 2 comments · Fixed by #579
Closed

rustic backup always show 1 dir as changed #541

aawsome opened this issue Mar 27, 2023 · 2 comments · Fixed by #579
Labels
C-bug Category: Something isn't working as expected

Comments

@aawsome
Copy link
Member

aawsome commented Mar 27, 2023

..even if there is no data added at all..

@aawsome aawsome added the C-bug Category: Something isn't working as expected label Mar 28, 2023
@waspoza
Copy link

waspoza commented Mar 31, 2023

How about this. I have directory /home/piotr/keepassdb with 2 files inside. After the backup i'm getting this output:

[INFO] merging source="/home/piotr/keepassdb" section from config file
[INFO] starting to backup "/home/piotr/keepassdb"...
[INFO] using parent 8e4032ec
Files:       0 new, 2 changed, 0 unchanged
Dirs:        0 new, 4 changed, 0 unchanged
Added to the repo: 1.9 MiB (raw: 1.9 MiB)
processed 2 files, 3.9 MiB
snapshot 93862c28 successfully saved.
[INFO] backup of "/home/piotr/keepassdb" done.

Which 4 dirs changed? There are no dirs inside, only 2 files.

@aawsome
Copy link
Member Author

aawsome commented Apr 1, 2023

Which 4 dirs changed? There are no dirs inside, only 2 files.

No, this is actually right. The 4 changed dirs (in the snapshot) are:

/home/piotr/keepassdb/
/home/piotr/
/home/
/

They all change if one file in /home/piotr/keepassdb changes - as the dirs contain hashes of the contents.

This issues is about rustic always reporting the / dir in your case as changed - even if there is no change at all (and rustic correctly tells 0B added to the repo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants