Skip to content

Instantly share code, notes, and snippets.

@ImTheTom
Created January 23, 2022 01:23
Show Gist options
  • Select an option

  • Save ImTheTom/d25929bb38db71db133846a7a5568f77 to your computer and use it in GitHub Desktop.

Select an option

Save ImTheTom/d25929bb38db71db133846a7a5568f77 to your computer and use it in GitHub Desktop.
Back up volume for container
docker run --rm --volumes-from {container name} -v $(pwd):/backup ubuntu tar cvfP /backup/{back up file name}.tar {directory of volume}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment