Guest User

Untitled

a guest
May 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. sudo docker run --rm --volumes-from fiisoftjupyterlab_jupyterlab_1 -v $(pwd):/backup busybox tar cvf backup.tar /opt/app/data
  2.  
  3. --rm: remove the container when it exits
  4. --volumes-from DATA: attach to the volumes shared by the DATA container
  5. -v $(pwd):/backup: bind mount the current directory into the container; to write the tar file to
  6. busybox: a small simpler image - good for quick maintenance
  7. tar cvf /backup/backup.tar /data: creates an uncompressed tar file of all the files in the /data directory
Add Comment
Please, Sign In to add comment