temp: transfert entre ordinateurs
This commit is contained in:
parent
a0d91a0ef7
commit
d81acac380
46 changed files with 18652 additions and 1328 deletions
2
scripts/déclenche-sauvegarde-bdd-production.fish
Normal file
2
scripts/déclenche-sauvegarde-bdd-production.fish
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ssh ade -- fish /srv/haikuatelier.com/scripts/sauvegarde-bdd-production.fish
|
||||
rclone copy --check-first --progress --multi-thread-streams 8 ade:/srv/haikuatelier.com/db /home/gcch/Répertoires/git.gcch.fr/gcch/haiku-atelier-2024/db
|
||||
|
|
@ -1,5 +1,10 @@
|
|||
set -f fichiers_toml (fd --glob "*.toml")
|
||||
set -f fichiers_angie (fd --glob "*.conf" containers/conf/angie)
|
||||
|
||||
for toml in $fichiers_toml
|
||||
taplo format "$toml"
|
||||
tombi format "$toml"
|
||||
end
|
||||
|
||||
for angie in $angie
|
||||
nginxfmt "$angie"
|
||||
end
|
||||
|
|
|
|||
4
scripts/sauvegarde-bdd-production.fish
Normal file
4
scripts/sauvegarde-bdd-production.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
cd /srv/haikuatelier.com/web
|
||||
sudo -S wp-cli --allow-root db export
|
||||
sudo -S mv -v /srv/haikuatelier.com/web/*.sql ../db
|
||||
sudo -S chown www-data: ../db
|
||||
Loading…
Add table
Add a link
Reference in a new issue