NetBox Docker backup

This commit is contained in:
s.farangi@limoo.host
2025-12-18 19:05:12 +03:30
parent 7d6f00662c
commit 36f888421e
3 changed files with 164 additions and 0 deletions

22
backup/backup.env.example Normal file
View File

@@ -0,0 +1,22 @@
# --------------------------------------------------
# FTP
# --------------------------------------------------
FTP_SERVER=ftp.example.com
FTP_USER=username
FTP_PASSWORD=password
FTP_DIR=/
# --------------------------------------------------
# PostgreSQL (Docker)
# --------------------------------------------------
PG_USER=netbox
PG_PASSWORD=netbox
PG_DB=netbox
PG_CONTAINER=netbox-postgres
# --------------------------------------------------
# Paths (host-mounted volumes)
# --------------------------------------------------
BACKUP_DIR=/opt/netbox/backups
NETBOX_VOLUME=/opt/netbox/netbox/media
REPORTS_VOLUME=/opt/netbox/netbox/reports