Skip to content

Instantly share code, notes, and snippets.

@luhenry
Created May 10, 2021 07:08
Show Gist options
  • Save luhenry/15a44e1a14ab542839273fe21d6cb36f to your computer and use it in GitHub Desktop.
Save luhenry/15a44e1a14ab542839273fe21d6cb36f to your computer and use it in GitHub Desktop.
docker run --rm -v ~/git:/backup --mount source=git,destination=/workspace,readonly ubuntu bash -cxe 'apt-get update -y; apt-get install -y rsync; rsync -arv /workspace/* /backup'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment