Skip to content

smaicloud/nbx-postgres-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netbox postgres backup

Comfortable shell script to backup your netbox postgres db (works for all other pg db's too)

Scheduling

# Backup postgresql database
#0 2 * * * /data/pg_backup.sh >> /dev/null 2>&1
# backup postgresql database backups with cleanup
0 2 * * * /data/pg_backup_rotated.sh >> /dev/null 2>&1

Restore:

su postgres
psql -c 'drop database netbox'
psql -c 'create database netbox'
psql netbox < netbox.sql

About

netbox database backup

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages