This commit is contained in:
Ornel ZINSOU-PLY 2025-10-23 13:40:24 +02:00
parent 566d3909a4
commit ea5a00a89f
6 changed files with 0 additions and 25 deletions

View File

@ -1,25 +0,0 @@
Acces a VM du Git qui est sur Azure, commande:
zinsouor@master-tc-2026-w11:~/VM_Sauvegarde/VM_Sauvegarde_Gitea$ ls
Gitea_cle.pem logs scripts tuto_install_git.txt Vagrantfile
ssh -i Gitea_cle.pem azureuser@20.19.88.39
--> le fichier qui sauvegarde le git
root@Gitea:~# ls (existe en root)
backup-gitea.sh (un crontab est fait derriere ca: 0 23 * * 4,5,6 /root/backup-gitea.sh)
--> l'endroit où c'est sauvegarder
azureuser@Gitea:~$ cd /backup/
azureuser@Gitea:/backup$ ls
gitea
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 .
scp -i ../cle/Gitea_cle.pem azureuser@20.19.88.39:/backup/gitea/gitea-backup-2025-10-09.tar.gz ../backup/