ZINSOU-PLY Ornel Godwill Kpèssou 1affade410 03/10/25
2025-10-03 12:38:24 +02:00

25 lines
724 B
Plaintext

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 .