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

Any way to backup the docker volumes as directory and not in archive? #148

Open
akash07k opened this issue Aug 28, 2022 · 6 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@akash07k
Copy link

Actually I'm using this image since some months now and I must say that it is fantastic!
The only thing which I miss is the incremental backups.
I use Backblaze B2 and hence I require incremental backups a lot.
I'm thinking to pair this image with Kopia because it can make incremental backups.
But I'm unable to identify that how to configure this image so that it doesn't generate the tar archive.
Instead of it it generates the directory and that same directory will be backed up with Kopia because it provides incremental backups.
Any help please?

@m90
Copy link
Member

m90 commented Aug 29, 2022

Right now this is not supported. It should not be too hard to add the functionality though (I'm not entirely sure how the configuration would work right now, but it's very likely it's possible to figure this out).

If anyone wants to add this, I am happy to discuss the implementation details, merge PRs and give support in any way that it's needed.

@m90 m90 added enhancement New feature or request help wanted Extra attention is needed labels Aug 29, 2022
@akash07k
Copy link
Author

akash07k commented Aug 29, 2022 via email

@m90
Copy link
Member

m90 commented Aug 29, 2022

Till then it can be added, I want to ask that is backing up the volumes directly from /var/lib/docker/volume/(volume_name) a good approach? Obviously, I'll stock the containers before that

I have never tried that so I cannot give any advice.

Another thing you could do is: use this image, and before using Kopia to upload to B2, untar the archive created (you could even do this in a labeled command). This should give you incremental backups as well, it's just not the most efficient way.

@akash07k
Copy link
Author

akash07k commented Aug 29, 2022 via email

@Persil090
Copy link

Hi, is incremental backup something that is as of today in scope or will be anytime soon?

Thank you

@m90
Copy link
Member

m90 commented Sep 23, 2024

Incremental backups would be nice, yes. That being said, I don't know which storage backends would even support this?

As a workaround for now, you can do something like described here https://offen.github.io/docker-volume-backup/how-tos/handle-file-uploads-using-third-party-tools.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants