Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| user:meriem [2022/07/28 10:32] – meriem | user:meriem [2023/01/22 16:01] (current) – [*awk*] aziz | ||
|---|---|---|---|
| Line 319: | Line 319: | ||
| === restore db: === | === restore db: === | ||
| <cli> | <cli> | ||
| - | bzcat $database_file | docker exec -i $db_container_name psql -U $db_user -d template1 | + | bzcat $database_file | docker exec -i $db_container_name psql -U $db_user -d template1 |
| - | bid=$! | + | |
| </ | </ | ||
| === restore filestore: === | === restore filestore: === | ||
| Line 347: | Line 346: | ||
| - | ==== *awk* ==== | + | ==== awk ==== |
| afficher la premiere colonne: '' | afficher la premiere colonne: '' | ||
| print colonne 1 and 6 and 7 with tab between them: '' | print colonne 1 and 6 and 7 with tab between them: '' | ||
| - | on va les separées | + | on va les séparer |
| - | afficher toute les ligne qui commance par "/": | + | afficher toute les ligne qui commance par "/": |
| on va prendre la dernière colonne depuis les lignes qui commence par "/": | on va prendre la dernière colonne depuis les lignes qui commence par "/": | ||
| - | |||
| - | === GPG === | ||
| - | |||
| - | * pour decrypter le contenu sans le mettre dans un nv fichier: '' | ||
| ===== emacs ===== | ===== emacs ===== | ||
| Line 525: | Line 520: | ||
| sudo crontab -e | sudo crontab -e | ||
| </ | </ | ||
| + | |||
| + | ====Dump database ==== | ||
| + | <cli> | ||
| + | $ docker exec -i elosys_cont pg_dump -U postgres --create --format=plain {db_name} | bzip2 > path/ | ||
| + | </ | ||
| + | |||