Archives de
Mois : décembre 2021

Linux tips

Linux tips

I Use a lot linux in my job so i will post here all the command i use a lot or discoverd during my daily use. Search in history In my day i usuly use the same command again and again exemple i regulary connect with ssh to the test server to check that everything is correct. I discovert that commad ctrl + R that can search for you in your history Replay a command This arrive everyday to me…

Lire la suite Lire la suite

Docker Tips

Docker Tips

In this post i’ll liste my useage of docker. Docker postgres In a project i work with Sauvegarde une base de donnee docker exec -t your-db-container pg_dumpall -c -U postgres > dump_date +%d-%m-%Y »_ »%H_%M_%S.sql Update a postgres database with a script docker cp update_script.sql Idcontainer:/home/update_script.sql docker exec -it Idcontainer psql -U user database -a -f /home/update_script.sql