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

Output the archive to STDOUT to avoid mounting second volume #2

Closed
loomchild opened this issue Dec 31, 2017 · 1 comment
Closed

Output the archive to STDOUT to avoid mounting second volume #2

loomchild opened this issue Dec 31, 2017 · 1 comment
Assignees

Comments

@loomchild
Copy link
Owner

@loomchild loomchild commented Dec 31, 2017

For backwards compatibility it would be nice to preserve the old syntax with two volumes in addition to this one.

From Holger's comment on my blog:

Very helpful, thank you. I felt inspired to avoid the dependency for mounting a host backup directory, by writing the archive content directly to stdout.

docker run –rm -v named-vol:/volume alpine tar -cjf – /volume > /tmp/backup.tar.bz2

Because my backup is not stored on the docker host directly:

docker run –rm -v named-vol:/volume alpine tar -cjf – /volume | ssh user@backuphost ‘cat > /tmp/backup.tar.bz2’

@loomchild loomchild self-assigned this Jan 13, 2018
@loomchild

This comment has been minimized.

Copy link
Owner Author

@loomchild loomchild commented Jan 14, 2018

Done

@loomchild loomchild closed this Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.