Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
B
backup_server_conf
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Ansible Roles
backup_server_conf
Validations
47e31ab4
Valider
47e31ab4
rédigé
Il y a 1 an
par
Théo - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
change: add version files to move
parent
3c98744c
Branches
Branches contenant la validation
Étiquettes
v1.0.8
Étiquettes contenant la validation
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
tasks/main.yml
+2
-0
2 ajouts, 0 suppression
tasks/main.yml
templates/move_versioned_files.sh.j2
+32
-0
32 ajouts, 0 suppression
templates/move_versioned_files.sh.j2
avec
34 ajouts
et
0 suppression
tasks/main.yml
+
2
−
0
Voir le fichier @
47e31ab4
...
...
@@ -84,6 +84,8 @@
-
odoo
-
odoo2
-
versions
-
versions/apt
-
versions/pip3
-
name
:
Install swift client
ansible.builtin.pip
:
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
templates/move_versioned_files.sh.j2
+
32
−
0
Voir le fichier @
47e31ab4
...
...
@@ -10,6 +10,22 @@ if [ -f /backup/sftp/{{ host|lower }}/{{ host|lower }}.$TODAY ]
then
mv
/backup/sftp/
{{
host|lower
}}
/
{{
host|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/backup/sftp/
{{
host|lower
}}
/apt_
{{
host|lower
}}
.
$TODAY
]
then
mv
/backup/sftp/
{{
host|lower
}}
/apt_
{{
host|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/backup/sftp/
{{
host|lower
}}
/apt-hr_
{{
host|lower
}}
.
$TODAY
]
then
mv
/backup/sftp/
{{
host|lower
}}
/apt-hr_
{{
host|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/backup/sftp/
{{
host|lower
}}
/pip3_
{{
host|lower
}}
.
$TODAY
]
then
mv
/backup/sftp/
{{
host|lower
}}
/pip3_
{{
host|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/backup/sftp/
{{
host|lower
}}
/pip3-hr_
{{
host|lower
}}
.
$TODAY
]
then
mv
/backup/sftp/
{{
host|lower
}}
/pip3-hr_
{{
host|lower
}}
.
$TODAY
/backup/versions/
fi
{
%
if
host
in
groups
[
'docker'
]
%
}
if
[
-f
/backup/sftp/
{{
host|lower
}}
/
{{
host|lower
}}
-docker
.
$TODAY
]
then
...
...
@@ -21,3 +37,19 @@ if [ -f /home/{{ host_user }}/versions/{{ inventory_hostname|lower }}.$TODAY ]
then
cp
-a
/home/
{{
host_user
}}
/versions/
{{
inventory_hostname|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/home/
{{
host_user
}}
/versions/apt_
{{
inventory_hostname|lower
}}
.
$TODAY
]
then
cp
-a
/home/
{{
host_user
}}
/versions/apt_
{{
inventory_hostname|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/home/
{{
host_user
}}
/versions/pip3_
{{
inventory_hostname|lower
}}
.
$TODAY
]
then
cp
-a
/home/
{{
host_user
}}
/versions/pip3_
{{
inventory_hostname|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/home/
{{
host_user
}}
/versions/apt-hr_
{{
inventory_hostname|lower
}}
.
$TODAY
]
then
cp
-a
/home/
{{
host_user
}}
/versions/apt-hr_
{{
inventory_hostname|lower
}}
.
$TODAY
/backup/versions/
fi
if
[
-f
/home/
{{
host_user
}}
/versions/pip3-hr_
{{
inventory_hostname|lower
}}
.
$TODAY
]
then
cp
-a
/home/
{{
host_user
}}
/versions/pip3-hr_
{{
inventory_hostname|lower
}}
.
$TODAY
/backup/versions/
fi
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter