Add daily backup scripts for PostgreSQL, MariaDB, and Gitea.
Enable scheduled backups of ncue.net databases and git.ncue.net repository mirrors via .env-driven shell scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
34
.env.example
Normal file
34
.env.example
Normal file
@@ -0,0 +1,34 @@
|
||||
## Database (PostgreSQL)
|
||||
PG_DB_HOST=ncue.net
|
||||
PG_DB_PORT=5432
|
||||
PG_DB_NAME=ncue
|
||||
PG_DB_USER=ncue
|
||||
PG_DB_PASSWORD=your_pg_password
|
||||
|
||||
## Database (MariaDB)
|
||||
MR_DB_HOST=ncue.net
|
||||
MR_DB_PORT=3306
|
||||
MR_DB_NAME=wordpress
|
||||
MR_DB_USER=ncue
|
||||
MR_DB_PASSWORD=your_mr_password
|
||||
|
||||
## Gitea
|
||||
GIT_BASE_URL=https://git.ncue.net
|
||||
GIT_USER=your_gitea_user
|
||||
GIT_TOKEN=your_gitea_token
|
||||
|
||||
## Backup
|
||||
BACKUP_DIR=/Users/dsyoon/workspace/backup/ncue
|
||||
BACKUP_RETENTION_DAYS=30
|
||||
|
||||
## PostgreSQL backup options
|
||||
PG_BACKUP_SCOPE=all
|
||||
PG_BACKUP_GLOBALS=1
|
||||
PG_BACKUP_SUPERUSER=postgres
|
||||
PG_BACKUP_SUPERUSER_PASSWORD=
|
||||
|
||||
## MariaDB backup options
|
||||
MR_BACKUP_SCOPE=all
|
||||
|
||||
## Gitea backup options
|
||||
GITEA_REPO_LIMIT=100
|
||||
Reference in New Issue
Block a user