April 2019

How to move files from our databases to another partition or hard drive

botond published 2019/04/30, k - 17:36 time
When running websites, the size of the databases may reach our free space on the partition, or we may want to migrate our databases to an SSD drive, for example, for performance optimization purposes. Whatever the reason for this, we can learn from this description how to migrate binaries containing databases to another partition or drive.

Rotate and compress log files with Logrotate

botond published Jan. 2019, 04, 17:23 p.m. time
If we run many services on our server, comprehensive and regular scanning of our log files becomes difficult. A useful solution is the logrotate command, which automatically rotates log files generated by various programs, compresses older ones and deletes older ones than the specified time, as well as the ability to send email notifications. With the use of the program, we no longer have to worry about the log files being buried after a few days or weeks of absence, because they are waiting in an orderly state for us to review them. In this description we will get acquainted with the general use of the Logrotate program.