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/25 11:33] – meriem | user:meriem [2023/01/22 16:01] (current) – [*awk*] aziz | ||
|---|---|---|---|
| Line 308: | Line 308: | ||
| ==== restore: ==== | ==== restore: ==== | ||
| + | |||
| + | Steps: | ||
| + | |||
| + | 1. recuperer les trois fichiers de (filestore / | ||
| + | |||
| + | 2. dcu (pour creer les 3 dossier (data/ | ||
| + | |||
| + | 3. mkdir -p filestore/ | ||
| === 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 339: | 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 517: | 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/ | ||
| + | </ | ||
| + | |||