Skip to content

Instantly share code, notes, and snippets.

@micahyoung
Created September 24, 2021 17:13
Show Gist options
  • Save micahyoung/190ba0079b2ce2e2cf385e5030019721 to your computer and use it in GitHub Desktop.
Save micahyoung/190ba0079b2ce2e2cf385e5030019721 to your computer and use it in GitHub Desktop.
rsync remote shell using docker run to sync remote volumes
docker build --tag rsync -f <(echo "FROM alpine\nRUN apk update && apk add rsync") /var/empty
rsync -vv -e 'docker run -v foo:/foo -i' -a rsync:/foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment