# Send a server or database backup

> Hand a multi-gigabyte database dump, disk image or server backup to someone else using only curl, with resumable upload and download and SHA-256 verification.

Source: https://gbfiles.com/use-cases/send-a-server-backup

Sometimes a backup has to go to another person or company: a database dump for a migration, a disk image for a forensic review, a site backup for a new host. You don't want to give them credentials to your storage, and you don't want a 400 GB upload to restart because SSH dropped.

## Why GB Files fits

- **Runs from a headless server.** `npx gbfiles send backup.tar.zst --no-open` prints the checkout link to pay from any device, then uploads. Without Node.js, the [REST API](/docs/api) needs only curl, openssl and jq.
- **Resumable both ways.** Uploads are chunked with a server-side ledger; downloads support `curl -C -`.
- **Verified.** Each chunk's SHA-256 is checked by storage on arrival, and the manifest gives the receiver the hashes.
- **Nothing to revoke later.** No shared bucket keys. The link expires after 7 days, or delete it as soon as they confirm.

## Steps

1. Run `npx gbfiles send backup.tar.zst --no-open` inside `tmux` or `screen`, so it survives a dropped SSH session.
2. Open the printed checkout link on any device and pay once.
3. Let it upload. If the process dies, run `npx gbfiles resume` and only the missing chunks are sent.
4. Send the share link. The recipient can download with `npx gbfiles download <link> --verify` or one `curl -C -` command.

## FAQ

### Should I encrypt the backup first?

For anything sensitive, yes. GB Files encrypts in transit and at rest, but encrypting the dump yourself (for example with `age` or `gpg`) means only the recipient with the key can read it.

### How big can the backup be?

Up to 5 TB per transfer.
