Skip to Content
LogiStackDocs
Data

Back up to SFTP, WebDAV, Azure, Google Drive or a disk

Send database and volume backups to an SFTP server, a WebDAV share, Azure Blob Storage, Google Drive, Backblaze B2's native API or a folder on a node.

Backups don't have to go to S3. A backup destination can also be a NAS or storage box over SFTP, a Nextcloud or other WebDAV share, an Azure Blob Storage container, a Google Drive folder, a Backblaze B2 bucket through B2's own API, or a folder on one of your nodes. Backup policies, retention, verify restores and restores work the same on every kind. Use this page when your off-site storage isn't an S3 bucket; for buckets, see Add an S3 destination.

How it works

  • SFTP, WebDAV, Azure Blob, Google Drive and B2 go through rclone, which ships in the LogiStack images. LogiStack hands rclone its settings through environment variables only: nothing is written to disk and no secret appears on a command line.
  • A folder on a node is reached through that node's agent. The bytes stream between the database's node and the folder's node; they never land on the control plane's disk.
  • Backups stream in both directions. LogiStack holds a bounded window of a backup in memory (tens of megabytes at most), however large the backup and however slow the destination.
  • Every destination is tested before it's saved: LogiStack writes a probe file, reads it back and deletes it.

Before you start

  • Only organization admins can add destinations.
  • Create the place backups go first: the folder on the server or share, the Azure container, the B2 bucket, or the folder on the node. LogiStack doesn't create it for you.
  • Use an account that reaches this place and nothing else.

Add a destination

Open Backup destinations

In the sidebar, under Integrations, select Backup destinations, then Add destination.

Pick the kind

In Where should backups go?, under Servers, drives and disks, pick SFTP, WebDAV, Azure Blob Storage, Google Drive, Backblaze B2 native or Folder on a node. Select Continue.

The Add a backup destination wizard, with object storage presets and the server, drive and disk kinds

Say where backups go

Fill in Location for the kind you picked. The fields are listed under Kinds. Backups land under <folder>/backups/<policy>/.

Sign in

In Sign-in, enter the password, key or token for the kind. Secrets are encrypted at rest and never shown again. Folder on a node has no sign-in step.

Test the destination

In Test the destination, select Run test. LogiStack writes .logistack-probe-… at the destination's root, reads it back and deletes it. A pass means it can write, read and delete there: the three things backups, restores and retention do. Nothing is saved until the test passes.

Name and save

In Name and review, keep the suggested Name (such as SFTP · nas.example.com) or type your own, check the summary and select Add destination.

Kinds

FieldExample
Hostnas.example.com
Port22
Userbackup
Folder/volume1/backups, or a path relative to the user's home
Sign in withPassword, or Private key (an unencrypted PEM key)

For a private key, add its public half to the user's ~/.ssh/authorized_keys on the server. Chrooted SFTP-only accounts work: LogiStack doesn't run shell commands on the server.

A folder on a node is not an off-site backup. Pair it with a policy that writes to another provider or region.

Check it worked

The destination shows under Destinations with its kind and location, such as sftp://[email protected]:22/volume1/backups, and Not used yet. Pick it in a backup policy, select Run now, and check that a file appears under backups/<policy>/ in the folder.

Remove a destination

Select the trash icon on its row, then Remove destination. LogiStack forgets the credentials; backups already written stay where they are. A destination still used by a policy can't be removed.

Troubleshooting

  • Host not allowed: the SFTP or WebDAV host resolves to a private address, or a WebDAV URL uses http://. An instance owner can allow private hosts in Settings.
  • The SFTP test fails with unable to authenticate: check the user and password, or that the public key is in authorized_keys.
  • The WebDAV test fails on a Nextcloud server: check that the URL is the WebDAV endpoint, ending in /remote.php/dav/files/<user>, not the web interface's address.
  • The Google Drive test fails after it once passed: the token was revoked. Run rclone authorize "drive" again and add the destination with the new token.
  • The node folder test fails and the detail mentions the bind source path: create the folder on that node first.

On this page