Server
The apt package manager saves a list of packages so you don't have to download it every time. When a Linux installation reaches a certain age the apt cache can take up several tens of gigabytes. APT does not clean the cache automatically, so it may contain obsolete packages in...
I recently encountered a server where the log files were taking up too much space. The "daemon.log" was over 3 GB and the syslog is over 2 GB. Those sizes are not normal !!! If you are in a similar situation, you should look at the files (both) to see...
I have done tests with "New Relic", and the truth is that they are expensive but it is worth having statistics of this type. Right now I have some servers that use NewRelic, and others that use Datadog. Both are very good services, they are different, but they are used...
It's a note for my future self, that every time I need it I have to look it up on Google. This way I already have it more handy and easy to find. .tar.gz files: Compress: tar -czvf packaged.tar.gz /folder/to/package/ Unzip: tar -xzvf archive.tar.gz .tar files: Pack: tar -cvf package.tar...
In all my servers (Linux) I have rs ync installed. Rsync allows to copy files, or rather synchronize them, between different servers. What makes it stand out is that it does it incrementally, fast and in a very simple way. This means that it only sends the files that have...
In some cases, it is necessary to empty a file without deleting it.A typical case is to have a log file on the server, which has grown excessively and occupies a lot of disk space. To empty the syslog file it can be done as follows: sudo truncate -s 0...
A command that I use a lot to see the space occupied by files and directories is the "du" command.By setting some parameters it is very convenient to use: du -sm * | sort -nr | head -5 Head -5 is to return only the first 5 results, you can...
I have several servers, to facilitate the management and detect incidents I am using dockers and DataDog (in its docker version).For those who don't know, DataDog is a monitoring system for servers. It allows many things. I am only using 2 of them: Infrastructure statistics (CPU usage, RAM, disk space...
Drupal's "clean URLs" rewrite query strings into human-readable text. A query string is a text in a URL preceded by a "?". For example https://example.com/?q=node/44 Query strings get in the way of search engines and are bad SEO practices. Google is not bad at understanding URLs with query strings, but...
If you have reached this page it is because you have noticed that your logs are very large and take up more space than you want. Detect exactly the size The following command shows the size of each of the logs in your docker containers. docker ps -aq | xargs...
Pagination
Have Any Project in Mind?
If you want to do something in Drupal maybe you can hire me.
Either for consulting, development or maintenance of Drupal websites.