Configure Backup Destinations¶
A destination is where a finished archive is delivered. Open the Backup interface through AcuGIS Connect, then click Destinations.
The page subtitle is Where finished backups are delivered. Click New destination to add a remote destination. The built-in Browser download destination is created when the service starts. It is not added from this form.
AcuGIS Backup does not provide a screen for editing or deleting a destination. To change a bucket, prefix, host, or credential, create a new destination and select it on the next job. Objects already stored at the old destination are left where they are.
Credentials are encrypted with /var/lib/acugis-backup/credential.key and are not shown again after you save. The Credentials column reports keys set, password set, key set, service account set, or application default. It does not show the secret.
Destination types¶
| Type in the form | What it stores |
|---|---|
| Browser download | The verified archive stays on this server, under the state directory. The built-in destination. |
| S3 / S3-Compatible | An object in an HTTPS S3-compatible bucket. Cloudflare R2 is supported. |
| Google Cloud Storage | An object in one Google Cloud Storage bucket. |
| SFTP | A file in a directory on an SFTP server. |
S3, Google Cloud Storage, and SFTP remove the local copy after the uploaded object matches the archive. Browser download keeps the local file so an administrator can download it from the run page.
The SFTP destination in AcuGIS Backup is the place a backup archive is uploaded. The Files view in AcuGIS Connect is a separate SFTP session for browsing and transferring files yourself. Saving one does not configure the other. See File Manager (SFTP).
Browser download¶
Browser download appears with the target this server. Its action is Local, and it has no Test button.
A successful job keeps the archive on the server. Open the run and use Download. The link is available only while you are signed in, and only for this destination. Retention can remove the file later. The history row remains. See Schedule and Monitor Backups.
Choose this destination when the archive should stay on the Backup server. Choose a remote destination when the archive should leave the server after the upload is checked.
S3 / S3-Compatible¶
- Click New destination.
- Enter a Name.
- Set Destination type to S3 / S3-Compatible.
- Fill in the S3 fields and click Save destination.
| Field | Required | What to enter |
|---|---|---|
| Endpoint | Yes | HTTPS URL, for example https://s3.example.com. A value without a scheme is treated as HTTPS. http:// is rejected. |
| Region | No | Region name, when the service requires one. The form starts at us-east-1. |
| Bucket | Yes | Bucket name, without spaces or slashes. |
| Prefix | No | Object prefix inside the bucket. .. is rejected. |
| Addressing mode | Yes | Path-style or Virtual-hosted. The form starts at Path-style. |
| Access key | Yes | Access key ID. |
| Secret key | Yes | Secret key. |
The endpoint must not include a username or password. Keys are encrypted and are not shown again.
On the Destinations page, click Test on that row. A successful test reports Destination is reachable. The test calls the bucket's HEAD request over HTTPS. It does not upload a backup archive.
Google Cloud Storage¶
Create or select a Google Cloud project, enable the Cloud Storage API if the project does not already have it, and create a bucket. Leave public access off. Do not grant allUsers or allAuthenticatedUsers.
Create a service account for this backup host and grant it access on that bucket only. Do not grant a project owner, project editor, or roles/storage.admin role. These permissions on the one bucket are enough:
| Permission | Used for |
|---|---|
storage.buckets.get |
Connection test, to confirm the bucket exists |
storage.objects.create |
Uploading an archive or the connection-test object |
storage.objects.get |
Reading size, generation, and CRC32C after the upload |
storage.objects.delete |
Removing the connection-test object and applying retention |
roles/storage.objectAdmin also works and is broader than this program needs.
- Click New destination.
- Enter a Name.
- Set Destination type to Google Cloud Storage.
- Enter Bucket name, for example
company-backups. - Enter Object prefix if you want one, for example
acugis-backup/. - Choose Authentication method.
- Click Save destination.
Application Default Credentials uses credentials already available to the service, such as a service account attached to a Google Cloud virtual machine. No JSON key is stored. On another host, GOOGLE_APPLICATION_CREDENTIALS can point at a key file the acugis-backup user can read. Do not put that file under /root or /home. The service cannot read those paths. A file in /etc/acugis-backup/ with mode 0640 and group acugis-backup is readable.
Service Account JSON asks you to paste the key once. The key must have type service_account. It is encrypted and is not shown again. Application Default Credentials are the better choice when the machine can use them. A downloaded service-account key is long-lived.
Click Test. The test loads the credentials, checks that the bucket exists, writes one small object under the prefix at .acugis-backup-test/, and deletes that object. The test succeeds only after the delete. If the delete fails, the message names the object and its generation so you can remove it by hand. A successful test reports Destination is reachable.
A later backup object is named:
<prefix>/<job id>/<timestamp>-<run id>/<filename>
The prefix is omitted when the destination has none. The upload does not overwrite an existing object of the same name.
SFTP¶
- Click New destination.
- Enter a Name.
- Set Destination type to SFTP.
- Fill in the SFTP fields and click Save destination.
| Field | Required | What to enter |
|---|---|---|
| Host | Yes | SFTP server hostname or IP address. |
| Port | Yes | SSH port of that SFTP server. The form starts at 22. |
| Username | Yes | SFTP account. |
| Authentication | Yes | Password or Private key. |
| Password | For password authentication | Account password. Encrypted after save. |
| Private key | For private-key authentication | OpenSSH private key. Encrypted after save. |
| Key passphrase | Only for an encrypted private key | Passphrase for that key. |
| Remote directory | Yes | Absolute directory, for example /var/backups/acugis. .. is rejected. |
| SSH host key | Yes | The server's public host key. Checked on every connection. |
Paste either a single OpenSSH public key (ssh-ed25519 AAAA...) or one known_hosts line. On a machine that can reach the SFTP server, ssh-keyscan prints a known_hosts line:
ssh-keyscan -t ed25519 files.example.com
Compare that key with a fingerprint you trust before you save it. The destination stores the host key and requires it to match on every connection, including Test.
Test connects with the pinned host key and checks that the remote directory exists. Success reports Destination is reachable. The directory must already exist. The test does not create it.
The upload writes a temporary name and keeps the file only after the remote size and SHA-256 match the archive.
Save and verify¶
- Click Save destination. The list shows the new row, its type, and its target.
- For S3, Google Cloud Storage, and SFTP, click Test.
- Wait for Destination is reachable.
- Create a job and select this destination. See Create Your First Backup.
A failed test leaves the destination saved and shows the error at the top of the page. The messages are listed in Troubleshooting.