Re: current log file removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Would this do?

cat /dev/null > my_log_file.log

On Fri, Nov 27, 2020 at 12:41 AM Yambu <hyambu@xxxxxxxxx> wrote:
Hi

How can I safely remove the log file that is being used  currently and zip it without interfering with the postgres server?

We are running out of space on the server and the logs are eating a lot of space, we need to zip them without first stopping the server.

regards

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux