Skip to content

Instantly share code, notes, and snippets.

View MauroEldritch's full-sized avatar
💉
Gonzo Hacking

Mauro Eldritch MauroEldritch

💉
Gonzo Hacking
View GitHub Profile
@superseb
superseb / readme.md
Created November 9, 2017 15:02
Restore MySQL database on bind-mounted directory for rancher/server

Restore MySQL database on bind-mounted directory for rancher/server

When you run rancher/server with a bind-mounted directory, both processes (MySQL and cattle) are always running so it can be hard to restore a backup.

Backup

Creating a backup can be done using:

docker exec rancher_server_id mysqldump --default-character-set=utf8 --databases cattle > cattle.sql

This will save the database called cattle (default) to cattle.sql on the host.

@hvasconcelos
hvasconcelos / gen_keys.sh
Last active September 19, 2023 23:14
Create an Sinatra SSL Server
# Generate a self-signed Certificate and a Private Key
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout pkey.pem -out cert.crt