Skip to main content

Create a Backup Job (Linux)

Before You Start

Proxmox Backup Client Installed (Instructions to Install Proxmox Backup Client)

Onboarding email with PBS hostname, encryption key, fingerprint, username and password

Steps

Login to the PBS server to save your credentials for this session. Shared users, the datastore is the same as your username and dedicated users, the datastore is named zpool1.

proxmox-backup-client login --repository [username]@pbs@[server]:[datastore]

Once entered, you'll be asked for your password.

The commands to run backups are as follows:

Backup Entire System
proxmox-backup-client backup root.pxar:/ --repository [username]@pbs@[server]:[datastore]
Backup Specific Paths
proxmox-backup-client backup root.pxar:[path/to/backup] \
  --repository [username]@pbs@[server]:[datastore]
  --keyfile /path/to/encryption/file.key

To run as a scheduled job, you can run the commands as a scheduled cron job. If you would like to exclude any files from being backed up, use the --exclude tag to specify any paths or files.

To confirm the backups were sent, run the following command:

proxmox-backup-client snapshot list --repository [username]@pbs@[server]:[datastore]