Frequently Asked Question

PBS Backup and Restore Logs
Last Updated 4 days ago

PBS Backup and Restore Logs

To access /var/log/proxmox-backup/tasks/archive on your PBS server, follow these steps:

  1. Access the Log File:

To view the log file directly from the command line, use:

   cat /var/log/proxmox-backup/tasks/archive
  1. 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
  1. 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:.

  1. 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
  1. 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:"
  1. 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.

This answer was generated by GEN's AI assistant and may not be 100% accurate. If you are unsure about any information provided, please raise a support ticket for clarification.
This website relies on temporary cookies to function, but no personal data is ever stored in the cookies.
OK
Powered by GEN UK CLEAN GREEN ENERGY

Loading ...