Proxmox Offline Mirror and Logging

Mar 3, 2026
2
0
1
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 see two details to check:
  1. tee doubles the output it receives, that's the idea behind a T; usually the goal is to get the output on screen and in the given file
  2. tee runs as the calling user - which should not have rights to write to /var/log
 
  • Like
Reactions: fabian