# urbestack-backup-make

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-backup-make --name USER (--out /path/USER-DATE-TIME.tar.gz | --own) [--include-backups]
```

## Description

Creates a .tar.gz archive for one customer or reseller. It contains the account export with its secrets in account.json, the home directory in files/ and a SQL dump for each database in databases/<name>.sql.

Choose either --out or --own. With --out, give an absolute path ending in .tar.gz in an existing directory. The finished archive is owned by root with mode 0600. UrbeStack adds .part to the filename while writing it in a temporary directory, then renames the finished archive into place.

With --own, the archive goes into backups/ at the top of the customer's home directory. The customer owns the archive with mode 0600 and the directory with mode 0700. The archive counts toward the customer's disk allowance. This option requires a package that permits backups on request and an account within its disk allowance. The filename is <user>-<date>-<time>.tar.gz, with the UTC date and time in YYYYMMDD and HHMMSS form. If the name already exists, UrbeStack adds a suffix such as -2 before .tar.gz. The command refuses a symbolic link in place of backups/.

The web interface queues a customer backup request as a job and refuses a second request while one is queued or running. At the shell, the command runs immediately.

The archive honors the customer's backup exclusions. By default it also leaves out backups/ in the home directory. Use --include-backups to include that directory. Including previous archives can double the archive size with each run. The Trash (.trash) and unfinished archives in backups/ are always excluded.

The command returns 507 before writing an archive if its estimated uncompressed size would leave the destination filesystem below the free-space reserve set by backups.min_free_percent. If the filesystem fills during writing, the command fails and removes the partial archive. Archive creation has a 6-hour timeout. The result reports files that changed during reading and any unreadable files that were skipped as warnings.

## Same in the API

- [POST /users/{name}/backups](https://urbestack.com/docs/api/post-users-name-backups.md): Queue an on-demand backup for a customer

## Command family: backup

- [urbestack-backup-account-list](https://urbestack.com/docs/commands/urbestack-backup-account-list.md): Lists customers as shown in the Backups section of the administrator's panel, with each customer's name, package and account state.
- [urbestack-backup-del](https://urbestack.com/docs/commands/urbestack-backup-del.md): Deletes one of the customer's own archives from backups/ in their home directory.
- [urbestack-backup-exclude-add](https://urbestack.com/docs/commands/urbestack-backup-exclude-add.md): Adds a path to the customer's backup exclusions.
- [urbestack-backup-exclude-del](https://urbestack.com/docs/commands/urbestack-backup-exclude-del.md): Removes an exclusion from the customer's backup list.
- [urbestack-backup-exclude-list](https://urbestack.com/docs/commands/urbestack-backup-exclude-list.md): Lists the customer's backup exclusions in path order.
- [urbestack-backup-exclude-set](https://urbestack.com/docs/commands/urbestack-backup-exclude-set.md): Locks or unlocks a customer's backup exclusion.
- [urbestack-backup-list](https://urbestack.com/docs/commands/urbestack-backup-list.md): Lists the customer's own archives in backups/ at the top of their home directory, newest first.
- [urbestack-backup-remote-key](https://urbestack.com/docs/commands/urbestack-backup-remote-key.md): Shows the public key and fingerprint of UrbeStack's Ed25519 key pair for remote backups, along with any recorded host key.
- [urbestack-backup-remote-test](https://urbestack.com/docs/commands/urbestack-backup-remote-test.md): Tests the remote backup destination, as the Test button does.
- [urbestack-backup-run](https://urbestack.com/docs/commands/urbestack-backup-run.md): Creates the server's backup for the day.
- [urbestack-backup-status](https://urbestack.com/docs/commands/urbestack-backup-status.md): Shows the backup status displayed in the Backups section and on the dashboard card in the administrator's panel.
