Output of command messages to a file

larry77

Member
Jul 25, 2021
6
0
6
41
Tell me how you can send the output of command messages to a file?

Bash:
proxmox-backup-client backup root.pxar:/ ... > status.log
doesn't work like that

Bash:
proxmox-backup-client prune ...> status-prune.log
that's how it works
 
Hey,

these should work:
- command >> filename 2>&1 will append stdout as well as stderr of the command to the end of the file.

- and command > filename 2>&1 for overwriting the whole file.
 
  • Like
Reactions: larry77

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!