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

why not back up When you need to back up /var/lib/docker/volumes/<volume-name>? #6

Closed
jadster opened this issue Jul 14, 2018 · 1 comment

Comments

@jadster
Copy link

jadster commented Jul 14, 2018

Remind me why we can't just back up or restore to folder

/var/lib/docker/volumes/<volume-name> ?

@loomchild
Copy link
Owner

Regarding simply grabbing contents of /var/lib/docker/volumes//_data directory – this could work, but I needed to talk to a remote Docker daemon and storing the backup on another volume, so this solution was more convenient.

I was also worried to build a solution on implementation detail (directory location) and about preserving file permissions, but maybe for no good reason.

I also think it's more convenient to operate on volumes (and their names instead of ids) and using a Docker-based tool being already in Docker world, but in the end it's just a simple wrapper script around a tar command with some nice extras (reading from stding / writing to stdout for example).

More infos / reasoning: https://loomchild.net/2017/03/26/backup-restore-docker-named-volumes/,

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