start new:
tmux
start new with session name:
tmux new -s myname
| # 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 | |
| #!/bin/bash | |
| # video demo at: http://www.youtube.com/watch?v=90xoathBYfk | |
| # written by "mhwombat": https://bbs.archlinux.org/viewtopic.php?id=71938&p=2 | |
| # Based on "snippy" by "sessy" | |
| # (https://bbs.archlinux.org/viewtopic.php?id=71938) | |
| # | |
| # You will also need "dmenu", "xsel" and "xdotool". Get them from your linux | |
| # distro in the usual way. | |
| # |