Skip to content

leonvogt/lunar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lunar

A tool for creating and restoring snapshots of PostgreSQL databases.

Installation

Using Homebrew:

brew install leonvogt/tap/lunar-db

Configuration

Lunar uses a lunar.yml configuration file. Run lunar init to create one interactively, or create it manually:

database_url: postgres://localhost:5432/
database: my_database

# Optional: specify a maintenance database for administrative operations
# If not set, lunar will try 'postgres' first, then 'template1'
# maintenance_database: postgres

Configuration Options

Option Required Description
database_url Yes PostgreSQL connection URL (without database name)
database Yes Name of the database to snapshot
maintenance_database No Database to use for admin operations (default: tries postgres, then template1)

Development

Run tests:

go test ./tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages