# urbestack-backup-exclude-add

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-exclude-add --user USER --path web/example.com/public_html/cache [--locked]
```

## Description

Adds a path to the customer's backup exclusions. Give --path relative to the customer's home directory, for example web/example.com/public_html/cache. Use --locked to prevent the customer from editing or removing the exclusion.

At the shell, the command treats the caller as an administrator by default. The web interface passes --by-customer for customer requests. The command refuses --locked when --by-customer is present.

## Same in the API

- [POST /users/{name}/backup-excludes](https://urbestack.com/docs/api/post-users-name-backup-excludes.md): Add a backup exclusion 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-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-make](https://urbestack.com/docs/commands/urbestack-backup-make.md): Creates a .tar.gz archive for one customer or reseller.
- [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.
