mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
The only backups of the panel were the ones taken by hand before an update. Now `manage.py backup` writes a new directory under backups/ with a consistent copy of the sqlite database (the backup API, while the panel runs, checked with PRAGMA integrity_check), the secret key, the worker's node_id, settings.py, the SSH keys of the panel's user and, outside Docker, the commit. It keeps the newest 7 (--keep N) and deletes older ones only after a good backup; a failed one leaves nothing, and a second run while one runs fails. Files are mode 600, directories 700: the database holds compute passwords and keys. With PostgreSQL the database is left out. It runs daily at 03:15: in Docker from the image's cron into a new volume, webvirtcloud-backups; otherwise from webvirt-backup.timer, which the installer and the manual steps install. A backup has the layout of the update backups, so the restore steps take either.
66 lines
No EOL
905 B
Text
66 lines
No EOL
905 B
Text
# Git
|
|
**/.git
|
|
**/.gitignore
|
|
|
|
# Python bytecode & cache
|
|
**/__pycache__
|
|
**/*.py[cod]
|
|
**/*$py.class
|
|
**/.pytest_cache
|
|
**/.coverage
|
|
**/htmlcov
|
|
|
|
# Virtual environments & environment files
|
|
**/venv*
|
|
**/.venv*
|
|
**/env*
|
|
**/.env*
|
|
|
|
# Local databases and runtime data (secret key, admin password, update backups)
|
|
backups
|
|
**/*.sqlite3*
|
|
data
|
|
**/*.bak
|
|
**/*~
|
|
**/*.swp
|
|
**/*.swo
|
|
**/staticfiles
|
|
**/*.log
|
|
**/console/cert.pem*
|
|
**/dhcpd.*
|
|
webvirtcloud/settings.py
|
|
|
|
# IDEs and OS
|
|
**/.idea
|
|
**/.vscode
|
|
**/.vs
|
|
**/.DS_Store
|
|
**/.classpath
|
|
**/.project
|
|
**/.settings
|
|
**/.toolstarget
|
|
**/*.*proj.user
|
|
**/*.dbmdl
|
|
**/*.jfm
|
|
**/.vagrant
|
|
|
|
# Docker and CI
|
|
**/.dockerignore
|
|
**/Dockerfile*
|
|
**/docker-compose*
|
|
**/azds.yaml
|
|
**/charts
|
|
**/secrets.dev.yaml
|
|
**/values.dev.yaml
|
|
|
|
# Node / frontend build leftovers
|
|
**/node_modules
|
|
**/npm-debug.log
|
|
**/obj
|
|
**/bin
|
|
|
|
# Documentation / metadata
|
|
README.md
|
|
AGENTS.md
|
|
CODEBASE_OVERVIEW.md
|
|
DEPENDENCY_UPGRADE_PLAN.md |