Schedule a backup
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
A backup job is set up in two places: in the dashboard you decide what and how often; on the server, how to reach the data.
Before you start
You need a server with the agent installed. Backups are available from the Starter plan.
1. Create the job in the dashboard
In Backups, scroll to New backup job and fill in:
| Field | What to enter |
|---|---|
| Name | A short name with no spaces, for example shop_prod. You’ll repeat it on the server. |
| What to back up | PostgreSQL, MySQL / MariaDB, MongoDB, SQLite or Folder. |
| Server | Which server it runs on. |
| Database or path | The database name, or the path to the folder or file. |
| Frequency | Every so many hours, weekly, manual or days and times (from Pro) to pick exact days and hours. |
| Keep (days) | How many days each snapshot is kept before it’s deleted automatically. |
| Destination | Agency only, if you connected your own storage. |
Click Schedule backup.
2. Add access on the server
In /etc/ganyant/agent.toml, a section with the same name as the job:
[backup.shop_prod]
dsn = "postgresql://backup:PASSWORD@127.0.0.1:5432/shop_prod"
[backup.wordpress]
database = "wordpress"
defaults_file = "/etc/ganyant/mysql.cnf"
[backup.app]
uri = "env:MONGO_URI"
[backup.app_db]
path = "/srv/app/data.db"
[backup.uploads]
path = "/var/www/uploads"
For MySQL, the password goes in a separate file so it doesn’t show up in the process list:
[client]
user = backup
password = PASSWORD
host = 127.0.0.1
Save it as /etc/ganyant/mysql.cnf and protect it:
sudo chown ganyant:ganyant /etc/ganyant/mysql.cnf && sudo chmod 600 /etc/ganyant/mysql.cnf
3. Test it
sudo systemctl restart ganyant-agent
sudo ganyant-agent backup shop_prod --manual
If it works, the snapshot shows up in Backups → Snapshots. You can also click Run now next to the job in the dashboard.
What each type needs
| Type | Tool (Debian/Ubuntu) | Minimum permissions |
|---|---|---|
| PostgreSQL | apt install postgresql-client, same major version as the server or newer |
CONNECT and SELECT, or pg_read_all_data on PostgreSQL 14+ |
| MySQL / MariaDB | apt install mysql-client or mariadb-client |
SELECT, SHOW VIEW, TRIGGER, LOCK TABLES, EVENT, plus PROCESS on MySQL 8 |
| MongoDB | MongoDB Database Tools | backup role |
| SQLite | apt install sqlite3 |
Read access to the file for the ganyant user |
| Folder | Comes with the system | Read access to the folder for the ganyant user |
On Windows, the tool must be on the system PATH (for example C:\Program Files\PostgreSQL\16\bin).
Limits by plan
| Plan | Minimum frequency | Maximum retention | Space |
|---|---|---|---|
| Starter | Every 24 h | 15 days | 15 GB |
| Pro | Every 6 h | 60 days | 100 GB |
| Agency | Every 1 h | 365 days | 400 GB, or unlimited with your own storage |
How it runs
The agent checks jobs every 60 seconds and runs the due ones at low CPU and disk priority, so it doesn’t compete with your app. The dump is streamed: you don’t need free space the size of the database, only for the temporary encrypted file.
If a backup fails, you get an alert with the error. If you hit the space limit, new ones are rejected before uploading and we tell you too.