Jé pa l'temps #8 - Data saveguard
☣️ Manual save of a Docker volume
Imported from github.
Save:
docker run --rm \
-v volumename:/vol -w /vol alpine tar -c . > volumename.tar
Load:
docker run --rm \
-v volumename:/vol -w /vol -i alpine tar -x < volumename.tar
⛓ Encrypt your data (before uploading them to the cloud)
With openssl ⚡️
Encryption
openssl enc -aes-256-cbc -salt \
-in input-file.txt \
-out output-file.txt \
-k password
Decryption
openssl enc -aes-256-cbc -salt -d \
-in output-file.txt \
-out input-file2.txt \
-k password
Cools links
- 🇫🇷 http://www.linux-france.org/prj/edu/archinet/systeme/ch24s03.html
- 🇬🇧 https://security.stackexchange.com/questions/112768/why-are-self-signed-certificates-not-trusted-and-is-there-a-way-to-make-them-tru
- 🇬🇧 https://www.thesslstore.com/blog/root-certificates-intermediate/
— — — — — — — — — — — — — — — — — — — — — —
La série « Jé pa l’temps » est une série de tutoriels rapides en mode “prise de note” pour avoir une trace de tout ce dont je ne peux me rappeler et pourquoi pas le partager à d’autre. On va à l’essentiel, laissons les jolis pavés à d’autres sites comme medium… LOL !