Blame

2eb695 Anonymous 2025-11-23 19:00:09 1
# Installation & configuration
2
f75f78 Anonymous 2025-11-23 19:44:05 3
<br />
2eb695 Anonymous 2025-11-23 19:00:09 4
5
## Create VM / install PBS
6
f75f78 Anonymous 2025-11-23 19:44:05 7
**VM spec:**
8
9
```properties
d78918 Anonymous 2025-11-23 19:45:10 10
DiskSize: 10GB
0dbc5c Anonymous 2025-11-23 19:51:57 11
CPU : 2 core 1 socket
12
Memory : 2GB
f75f78 Anonymous 2025-11-23 19:44:05 13
```
2eb695 Anonymous 2025-11-23 19:00:09 14
f75f78 Anonymous 2025-11-23 19:44:05 15
**ISO install**
16
Proxmox backup server ISO install. Follow install, nothing special to set
2eb695 Anonymous 2025-11-23 19:00:09 17
f75f78 Anonymous 2025-11-23 19:44:05 18
<br />
2eb695 Anonymous 2025-11-23 19:00:09 19
f75f78 Anonymous 2025-11-23 19:44:05 20
## Configuration
2eb695 Anonymous 2025-11-23 19:00:09 21
f75f78 Anonymous 2025-11-23 19:44:05 22
### Configure VM datastore for PBS data
2eb695 Anonymous 2025-11-23 19:00:09 23
24
By default you can't mount this directly, nor can you create a direct datastore and mount to the VM. So we need to use a `Directory Mapping` instead.
25
f75f78 Anonymous 2025-11-23 19:44:05 26
1. Log into the web UI
27
2. Setup Directory mapping
28
1. Datacenter > Directory Mappings > Add
29
0dbc5c Anonymous 2025-11-23 19:51:57 30
```properties
31
Name: vault-vm-backups
32
Path: /vault/vm_backups
33
```
f75f78 Anonymous 2025-11-23 19:44:05 34
35
3. Update the VM mount the mapping
2eb695 Anonymous 2025-11-23 19:00:09 36
1. Select the VM > Hardware > Add > Virtiofs
0dbc5c Anonymous 2025-11-23 19:51:57 37
f75f78 Anonymous 2025-11-23 19:44:05 38
```properties
0dbc5c Anonymous 2025-11-23 19:51:57 39
DirectoryId: vault-vm-backups
f75f78 Anonymous 2025-11-23 19:44:05 40
```
0dbc5c Anonymous 2025-11-23 19:51:57 41
2eb695 Anonymous 2025-11-23 19:00:09 42
2. Reboot the VM
f75f78 Anonymous 2025-11-23 19:44:05 43
4. Mount within the VM
2eb695 Anonymous 2025-11-23 19:00:09 44
1. SSH into the VM
45
2. Check the virtiofs mount was recognised by the VM ok
3de63f Anonymous 2025-11-23 19:59:56 46
f75f78 Anonymous 2025-11-23 19:44:05 47
```shell
48
dmesg | grep -i virtiofs
49
```
3de63f Anonymous 2025-11-23 19:59:56 50
f75f78 Anonymous 2025-11-23 19:44:05 51
You should see the name of the virtiofs ID that was added earlier `vault-vm-backups`
2eb695 Anonymous 2025-11-23 19:00:09 52
3. Mount everything
3de63f Anonymous 2025-11-23 19:59:56 53
f75f78 Anonymous 2025-11-23 19:44:05 54
```shell
55
mkdir -p /mnt/backup-data
56
mount -t virtiofs vault-vm-backups /mnt/backup-data
57
vi /etc/fstab
58
# Add the following so it mounts automatically
59
vault-vm-backups /mnt/backup-data virtiofs defaults 0 0
60
```
3de63f Anonymous 2025-11-23 19:59:56 61
f75f78 Anonymous 2025-11-23 19:44:05 62
<br />
3de63f Anonymous 2025-11-23 19:59:56 63
f75f78 Anonymous 2025-11-23 19:44:05 64
### Configure PBS
3de63f Anonymous 2025-11-23 19:59:56 65
f75f78 Anonymous 2025-11-23 19:44:05 66
1. Log into the web UI
67
2. Datastore > Add datastore
68
1. Setup with properties
3de63f Anonymous 2025-11-23 19:59:56 69
f75f78 Anonymous 2025-11-23 19:44:05 70
```properties
0dbc5c Anonymous 2025-11-23 19:51:57 71
Name : Backups
72
BackingPath : /mnt/backup-data
73
PruneJobConfig: Keep last 4, keep 5 daily, keep 4 weekly, keep 2 monthly, keep 1 yearly
f75f78 Anonymous 2025-11-23 19:44:05 74
```
3de63f Anonymous 2025-11-23 19:59:56 75
f75f78 Anonymous 2025-11-23 19:44:05 76
3. Select the datastore created > options > Verify new snapshots
77
- `Enable`
78
4. Setup the backup user to limit access between PVE and PBS
79
1. Configuration > Access Control > Add
3de63f Anonymous 2025-11-23 19:59:56 80
f75f78 Anonymous 2025-11-23 19:44:05 81
```properties
82
User : proxmox
2eb695 Anonymous 2025-11-23 19:00:09 83
Password: Add one
f75f78 Anonymous 2025-11-23 19:44:05 84
[Save to password manager as this will be forgotten in time]
85
```
3de63f Anonymous 2025-11-23 19:59:56 86
87
2. Configuration > Access Control > Permissions > Add > User permission
88
89
```properties
90
Path: /datastore
91
User: proxmox@pbs
92
Role: Datastore admin
93
```
94
f75f78 Anonymous 2025-11-23 19:44:05 95
5. Get the certificate fingerprint for PVE registration
96
1. Configuration > Certificates
97
2. Copy the finger print for next section
98
99
<br />
2eb695 Anonymous 2025-11-23 19:00:09 100
0dbc5c Anonymous 2025-11-23 19:51:57 101
### Configure PVE to use PBS
2eb695 Anonymous 2025-11-23 19:00:09 102
f75f78 Anonymous 2025-11-23 19:44:05 103
1. Log into the web UI
104
2. Setup the Proxmox backup connection
0dbc5c Anonymous 2025-11-23 19:51:57 105
1. Datacenter > Storage > Add Proxmox Backup Server
3de63f Anonymous 2025-11-23 19:59:56 106
0dbc5c Anonymous 2025-11-23 19:51:57 107
```properties
108
ID : vault-vm-backup
109
Server : <IP to PBS>
110
Username : proxmox@pbs
111
Password : <proxmox@pbs password>
112
Datastore : Backups (the datastore created within PBS)
113
Fingerprint: <pbs fingerprint copied earlier>
114
```
3de63f Anonymous 2025-11-23 19:59:56 115
0dbc5c Anonymous 2025-11-23 19:51:57 116
3. Setup backup schedule
117
1. Datacenter > Backups > Edit backup job
3de63f Anonymous 2025-11-23 19:59:56 118
0dbc5c Anonymous 2025-11-23 19:51:57 119
```properties
120
Storage : vault-vm-backup
121
Schedule : '23:00'
122
Selection mode: Include selected VMs
123
[Unselect anything you don't want AND unselect PBS to avoid recursion backup]
124
```
3de63f Anonymous 2025-11-23 19:59:56 125
0dbc5c Anonymous 2025-11-23 19:51:57 126
4. Test backup is working
127
1. Datacenter > Backups > Backup now
128
129
_Note: The first backup is full (not incremental), any VM shutdown is always full backup, only online VMs that have at least one full backup will have incremental backups taken_