This commit is contained in:
Ornel_Zply 2025-10-23 10:30:19 +02:00
parent edcc697405
commit afbe59ca68
4 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,25 @@
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/

View File

@ -0,0 +1,25 @@
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/

View File

@ -0,0 +1,25 @@
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/

View File

@ -0,0 +1,25 @@
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/