Created
August 4, 2023 15:50
-
-
Save vshmoylov/fc68878a48e1162eaa6498e14b3326d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VOLUME=vol_name_here; ssh your.server "cd `docker volume inspect --format "{{ .Mountpoint }}" $VOLUME`; tar -czf - ." > ${VOLUME}-backup-`date +"%Y-%m-%d_%H.%M.%S"`.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment