This may seem like a silly question, but I'm looking for some direction on logging the activity that is normally output to the command line when you run the 'Snapshot Create' option.
I do not find any reference in the documentation for specifying a log location for POM activities in the config file, and I've come up empty with search engine results.
I want to log the snapshot creation output, similarly to how you can create a log with 'APT-MIRROR'.
I tried redirecting the output when running the process, but this failed...
Here's my example:
sudo proxmox-offline-mirror mirror snapshot create --config '/etc/proxmox-offline-mirror.cfg' 'debian_trixie_main' 2>&1 | tee /var/log/proxmox-offline-mirror.log &
The result of this was that the output was not redirected to the log file. Output still ran to the console and did not create the log file.
The end game is to run this via Ansible playbook, but I still want to send the snapshot creation output to a log file.
I do not find any reference in the documentation for specifying a log location for POM activities in the config file, and I've come up empty with search engine results.
I want to log the snapshot creation output, similarly to how you can create a log with 'APT-MIRROR'.
I tried redirecting the output when running the process, but this failed...
Here's my example:
sudo proxmox-offline-mirror mirror snapshot create --config '/etc/proxmox-offline-mirror.cfg' 'debian_trixie_main' 2>&1 | tee /var/log/proxmox-offline-mirror.log &
The result of this was that the output was not redirected to the log file. Output still ran to the console and did not create the log file.
The end game is to run this via Ansible playbook, but I still want to send the snapshot creation output to a log file.