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

restic reporting 128 TiB when backing up /var/lib/docker/aufs!!!!! #3

Open
rgusick opened this issue Oct 23, 2018 · 5 comments
Open

Comments

@rgusick
Copy link

rgusick commented Oct 23, 2018

Everything has gone smoothly setting up this container to backup my Ubuntu system. I've created an exclude file to avoid wasting time with files and directories that I don't need backed up. The problem appeared when processing /var (specifically /var/lib/docker/aufs). restic is reporting that it needs to analyze up 128 TiB of data!!!!!!!
128 TiB

The actual data:

> du -hs  /var/lib/docker/aufs  
19G     /var/lib/docker/aufs
> find  /var/lib/docker/aufs | wc -l 
696063
> du -hs  /volume1/backups/restic-repo
37G     /volume1/backups/restic-repo

Needless to say my backup for this one subdirectory (which is already in my EXCLUDE list) has effectively made my backup almost 9000x slower (19 GB vs 128 TiB) than it should be!!!!

Help!

@johansmitsnl
Copy link
Collaborator

Can you show me your exclude file or command line?

@rgusick
Copy link
Author

rgusick commented Oct 23, 2018 via email

@johansmitsnl
Copy link
Collaborator

is the exclude file available in the docker container?
Can you post you compose file or command line?

@rgusick
Copy link
Author

rgusick commented Oct 26, 2018 via email

@johansmitsnl
Copy link
Collaborator

Looking at the documentation https://restic.readthedocs.io/en/latest/040_backup.html#including-and-excluding-files should you exclude the directory like this: /data/var/lib/** with to asterisks to match all sub directories to?

In my case I don't backup / and only a the data directory. The host contains only docker and I backup only the docker mounted dirs + configs. In your case looks like ${USERDIR}/docker. And I don't exclude anything.

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

2 participants