Frequently Asked Question
PBS Backup and Restore Logs
To access /var/log/proxmox-backup/tasks/archive on your PBS server, follow these steps:
- Access the Log File:
To view the log file directly from the command line, use:
cat /var/log/proxmox-backup/tasks/archive
- Filter by Guest (e.g.,
vm-107):
Use the grep command to filter lines containing a specific guest ID like vm-107:
grep "vm-107" /var/log/proxmox-backup/tasks/archive
- Filter by Backup or Restore:
To specifically look for backup operations, use the following command:
grep ":backup:" /var/log/proxmox-backup/tasks/archive
Similarly, to filter for restore operations, you might look for lines containing :restore:.
- Show Non-OK Lines Using
grep -v:
If you want to display only the lines that do not contain " OK", use:
grep -v " OK" /var/log/proxmox-backup/tasks/archive
- Combining Filters:
You can combine these filters for more specific searches, such as finding non-OK backup operations related to a particular guest ID:
grep "vm-107" /var/log/proxmox-backup/tasks/archive | grep -v " OK" | grep ":backup:"
- Viewing Output in Columns:
For better readability, you can use less or more to view the output line by line:
less /var/log/proxmomx-backup/tasks/archive
Or pipe it directly into less for easier navigation:
grep "vm-107" /var/log/proxmox-backup/tasks/archive | grep -v " OK" | grep ":backup:" | less
By following these steps, you can effectively filter and view specific log entries in the /var/log/proxmox-backup/tasks/archive file on your PBS server.
