Installation
You have three ways to install Postgresus: automated script (recommended), simple Docker run or Docker Compose setup.
System requirements
Postgresus requires the following minimum system resources to run properly:
- CPU: At least 1 CPU cores
- RAM: Minimum 500 MB RAM
- Storage: 5 GB for installation and as much as you need for backups
- Docker: Docker Engine 20.10+ and Docker Compose v2.0+
Option 1: installation script (recommended, Linux only)
The installation script will:
- ✅ Install Docker with Docker Compose (if not already installed)
- ✅ Set up Postgresus
- ✅ Configure automatic startup on system reboot
sudo apt-get install -y curl && \
sudo curl -sSL https://raw.githubusercontent.com/RostislavDugin/postgresus/refs/heads/main/install-postgresus.sh | sudo bashIn this case Postgresus will be installed in /opt/postgresus directory.
Option 2: Simple Docker run
The easiest way to run Postgresus:
docker run -d \
--name postgresus \
-p 4005:4005 \
-v ./postgresus-data:/postgresus-data \
--restart unless-stopped \
rostislavdugin/postgresus:latestThis single command will:
- ✅ Start Postgresus
- ✅ Store all data in
./postgresus-datadirectory - ✅ Automatically restart on system reboot
Option 3: Docker Compose setup
Create a docker-compose.yml file with the following configuration:
services:
postgresus:
container_name: postgresus
image: rostislavdugin/postgresus:latest
ports:
- "4005:4005"
volumes:
- ./postgresus-data:/postgresus-data
restart: unless-stoppedThen run:
docker compose up -dKeep in mind that start up can take up to ~2 minutes.
Getting started
After installation:
- Launch and access Postgresus: Start Postgresus and navigate to
http://localhost:4005 - Create your first backup job: Click "New Backup" and configure your PostgreSQL database connection
- Configure schedule: Set up your backup schedule (hourly, daily, weekly or monthly)
- Choose storage destination: Select where to store your backups (local, S3, Google Drive, etc.)
- Set up notifications: Add notification channels (Slack, Telegram, Discord) to get alerts about backup status
- Start backing up: Save your configuration and watch your first backup run!
How to update Postgresus?
To update Postgresus, you need to stop it, clean up Docker cache and restart the container.
- Go to the directory where Postgresus is installed (usually
/opt/postgresus) - Stop the container:
docker compose stop - Clean up Docker cache:
docker system prune -a - Restart the container:
docker compose up -d
It will get the latest version of Postgresus from the Docker Hub (if you have not fixed the version in the docker-compose.yml file).
Troubleshooting
Container won't start
If the container fails to start, check the logs:
docker logs postgresusPort already in use
If port 4005 is already in use, you can change it in your docker-compose.yml:
ports:
- "8080:4005" # Change 8080 to any available portPermission denied errors
If you encounter permission issues with the data directory:
sudo chown -R $USER:$USER ./postgresus-data
chmod -R 755 ./postgresus-data