03/10/25
This commit is contained in:
parent
fdf04b789b
commit
1affade410
2
Git/Git-local/Restore/etape1.sh
Normal file → Executable file
2
Git/Git-local/Restore/etape1.sh
Normal file → Executable file
@ -23,5 +23,5 @@ sudo adduser --system --group --home /var/lib/gitea --shell /bin/sh git
|
||||
echo "=== Installation terminée ! ==="
|
||||
gitea --version
|
||||
|
||||
|
||||
sudo apt install rsync
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
Acces a VM du Git qui est sur Azure, commande:
|
||||
|
||||
PS C:\Users\zinso\OneDrive\Desktop\ESEO\Semestre 9\PFE\Git> ssh -i "C:\Users\zinso\OneDrive\Desktop\ESEO\Semestre 9\PFE\Git\Gitea_cle.pem" azureuser@20.19.88.39
|
||||
zinsouor@master-tc-2026-w11:~/VM_Sauvegarde/VM_Sauvegarde_Gitea$ ls
|
||||
Gitea_cle.pem logs scripts tuto_install_git.txt Vagrantfile
|
||||
|
||||
|
||||
Sur Ubuntu: ssh -i "/mnt/c/Users/zinso/OneDrive/Desktop/ESEO/Semestre 9/PFE/Git/Gitea_key_0917.pem" azureuser@48.220.32.215
|
||||
ssh -i Gitea_cle.pem azureuser@20.19.88.39
|
||||
|
||||
--> le fichier qui sauvegarde le git
|
||||
|
||||
@ -19,5 +19,6 @@ azureuser@Gitea:/backup$ cd gitea/
|
||||
azureuser@Gitea:/backup/gitea$ ls
|
||||
azureuser@Gitea:/backup/gitea$
|
||||
|
||||
-->
|
||||
--> backup vers une vm-sauvegarde local
|
||||
|
||||
scp -i ../Gitea_cle.pem azureuser@20.19.88.39:/backup/gitea/gitea-backup-2025-10-02.tar.gz .
|
||||
|
||||
27
commande_docker.md
Normal file
27
commande_docker.md
Normal file
@ -0,0 +1,27 @@
|
||||
# methode 1
|
||||
# Arrêter tous les containers
|
||||
docker stop $(docker ps -aq)
|
||||
|
||||
# Supprimer tous les containers
|
||||
docker rm -f $(docker ps -aq)
|
||||
|
||||
# Supprimer toutes les images
|
||||
docker rmi -f $(docker images -q)
|
||||
|
||||
# Supprimer tous les volumes
|
||||
docker volume rm $(docker volume ls -q)
|
||||
|
||||
# Supprimer tous les réseaux personnalisés
|
||||
docker network rm $(docker network ls -q | grep -v "bridge\|host\|none")
|
||||
|
||||
# verifier que tt est propre
|
||||
docker system df
|
||||
|
||||
|
||||
|
||||
# methode 2
|
||||
docker system prune -a --volumes --force
|
||||
|
||||
# Pour construire
|
||||
|
||||
docker compose up --build
|
||||
44
observability/loki-config.yml
Normal file
44
observability/loki-config.yml
Normal file
@ -0,0 +1,44 @@
|
||||
auth_enabled: false
|
||||
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
|
||||
ingester:
|
||||
lifecycler:
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
replication_factor: 1
|
||||
chunk_idle_period: 5m
|
||||
chunk_retain_period: 30s
|
||||
max_transfer_retries: 0
|
||||
|
||||
schema_config:
|
||||
configs:
|
||||
- from: 2020-10-24
|
||||
store: boltdb-shipper
|
||||
object_store: filesystem
|
||||
schema: v11
|
||||
index:
|
||||
prefix: index_
|
||||
period: 24h
|
||||
|
||||
storage_config:
|
||||
boltdb_shipper:
|
||||
active_index_directory: /loki/index
|
||||
cache_location: /loki/cache
|
||||
shared_store: filesystem
|
||||
filesystem:
|
||||
directory: /loki/chunks
|
||||
|
||||
limits_config:
|
||||
enforce_metric_name: false
|
||||
reject_old_samples: true
|
||||
reject_old_samples_max_age: 168h
|
||||
|
||||
chunk_store_config:
|
||||
max_look_back_period: 0s
|
||||
|
||||
table_manager:
|
||||
retention_deletes_enabled: false
|
||||
retention_period: 0s
|
||||
27
observability/note/commande_docker.md
Normal file
27
observability/note/commande_docker.md
Normal file
@ -0,0 +1,27 @@
|
||||
# methode 1
|
||||
# Arrêter tous les containers
|
||||
docker stop $(docker ps -aq)
|
||||
|
||||
# Supprimer tous les containers
|
||||
docker rm -f $(docker ps -aq)
|
||||
|
||||
# Supprimer toutes les images
|
||||
docker rmi -f $(docker images -q)
|
||||
|
||||
# Supprimer tous les volumes
|
||||
docker volume rm $(docker volume ls -q)
|
||||
|
||||
# Supprimer tous les réseaux personnalisés
|
||||
docker network rm $(docker network ls -q | grep -v "bridge\|host\|none")
|
||||
|
||||
# verifier que tt est propre
|
||||
docker system df
|
||||
|
||||
|
||||
|
||||
# methode 2
|
||||
docker system prune -a --volumes --force
|
||||
|
||||
# Pour construire
|
||||
|
||||
docker compose up --build
|
||||
18
observability/promtail-config.yml
Normal file
18
observability/promtail-config.yml
Normal file
@ -0,0 +1,18 @@
|
||||
server:
|
||||
http_listen_port: 9080
|
||||
grpc_listen_port: 0
|
||||
|
||||
positions:
|
||||
filename: /tmp/positions.yaml
|
||||
|
||||
clients:
|
||||
- url: http://loki-observability:3100/loki/api/v1/push # URL du service Loki
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'docker-containers'
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost
|
||||
labels:
|
||||
job: docker
|
||||
__path__: /var/lib/docker/containers/*/*.log # Chemin vers les logs Docker
|
||||
Loading…
x
Reference in New Issue
Block a user