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

Error in btrfs-receive when directory was replaced with subvolume between backups #608

Open
juanmeleiro opened this issue Jan 22, 2025 · 0 comments

Comments

@juanmeleiro
Copy link

One the directories in my machine stores videos that I download, which means there are lots of big files being put there, and roughly the same amount being deleted, very often. So this was filling-up my backup HD. I transformed it into a btrfs subvolume using commands similar to this:

mv $DIR $DIR.old
btrfs subvolume create $DIR
cp --reflink=always $DIR.old/. $DIR
rm -r $DIR.old

But now, when I run btrbk, btrfs receive throws an error. The relevant lines when running it with --log debug are these:

unlink o822875-724-0/$FILE
rmdir o822875-724-0
ERROR: rmdir o822875-724-0 failed: Directory not empty

I'm not sure this is the appropriate repo where to open this issue, but I thought I'd try.

The question: how do I resume backups? I don't care about preserving the contents of that directory across snapshots or even backups. I'd like to avoid doing a complete backup from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant