Local Storage
Store your backups directly on the dashboard server.
By default, Portabase is configured to use Local Storage. This means that backups sent by your agents are stored on the disk of the machine where the dashboard is running.
This method is ideal for:
- Testing and discovery.
- Small infrastructures.
- Using a network mount (NFS, EFS) already attached to the server.
Data Persistence
If you are using Docker, it is crucial to use a volume to ensure your backups are not lost when the container is restarted or updated.
The default docker-compose.yml provided by the CLI already includes a volume for the private folder:
services:
portabase:
# ...
volumes:
- portabase-private:/app/privateBackups are stored inside /app/private/backups.
Using a Custom Path
If you want to store backups in a specific folder on your host machine (e.g., an external hard drive or a dedicated partition), you can use a bind mount in your docker-compose.yml:
services:
portabase:
# ...
volumes:
- /mnt/backups/portabase:/app/private/backupsMake sure the user running the Docker container (usually node or root) has write permissions on the host folder.