Add ayon backup/restore targets to makefile and manage.ps1 (not just by a project)

Aperta
#31 1 commento 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker, docker-compose, postgresql, powershell

Direzione di ricerca

Inizia confrontando i target esistenti di dump e ripristino del progetto in Makefile e manage.ps1. Esamina i comandi proposti di docker compose pg_dump e psql, insieme ai file elencati storage/, addons/, docker-compose.yml e backup.sql. Il lavoro è completato quando vengono aggiunti target chiaramente denominati per il backup e il ripristino completi del database senza popolarlo con valori predefiniti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is there an existing issue for this?
  • I have searched the existing issues.
Please describe the feature you have in mind and explain what the current shortcomings are?

Complete db backup and restore

How would you imagine the implementation of the feature?
  • run docker compose exec postgres pg_dump -U ayon > backup.sql to create database dump
  • copy storage/, addons/, docker-compose.yml and backup.sql to the new machine (and other supporting files)
  • run docker compose up postgres on the new machine to start only the database (if you run the entire stack, it will be populated with defaults, we want to keep it empty for now)
  • run docker compose exec -T postgres psql -U ayon ayon < backup.sql to restore the backup
  • start everything using docker compose up
Are there any labels you wish to add?
  • I have added the relevant labels to the enhancement request.
Describe alternatives you've considered:

No response

Additional context:

keep in mind we already have dump restore targets for projects, so we need to think about names as well

Lingua principale
PowerShell
Stelle
60
Fork
51
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ynput/ayon-docker

Tutte le issue di ynput/ayon-docker

Issue simili

Altre issue su Databases

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.