Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo| #!/usr/bin/env bash | |
| # convert OpenLDAP schema file to LDIF file | |
| # | |
| # Copyright 2012 NDE Netzdesign und -entwicklung AG, Hamburg | |
| # Written by Jens-U. Mozdzen <[email protected]> | |
| # Copyright 2014 jaseg <[email protected]> | |
| # | |
| # Permission is granted to use, modify and redistribute this file as long as | |
| # - this copyright notice is left unmodified and included in the final code |