First, we can check old logs and their size:
/var/log/ – a standard place for system logs, and applications, if not set otherwise. Using: ls -alh we can list all files with their size and du -h we can see the size of folders. Sometimes we do not need some archived old logs, so they can be deleted, but only if we are sure that they won't be needed anymore.
In /var/log/ there are some folders, which can store a big amount of logs, e.g: /var/log/http/ which is standard web server (in most cases the apache web server) logs location. In our example the folder contains a lot of old logs (those are the ones with date appended in the end of file name) with size of a few gigabytes and those can be deleted, if we are sure, that they will be no longer required:
/servers/(cat/spell/pm)/logs is the location of xtm application logs, or corresponding localization on your server, depending on your settings used at the installation. Here we can also see files with appended a date at the end of file, and those, as explained above, can be deleted, if no more required:
Second, we move to xtm files:
We can check and delete files in temporary catalogs, in case they weren't cleared automatically. There are many ways to do it, but most efficient is to use a bash script and modify it to your needs. A good example of such script is the one below:
Please bear in mind, that the paths shown above are the standard installation paths of xtm app, if you have different ones, then edit it accordingly!
To create such a file, please do as follows:
From the console: create a bash script and make it executable:
Lastly, we can delete archived or unused projects (do it only when You are sure that you will never ever need them again – the process of deleting projects is irreversible!)
Go to /xtm/xtm/deleted/ or /xtm/xtm/archived (in case You have some non-standard installation path, go according to your installation paths)
Inside this folder(s) you can find the IDs of projects that have been either deleted or archived, and you can choose which one you can delete if any.
If You ever made some database dumps, there is a possibility, that they weren't deleted after dump/or restore.
First, check your bash history to find out if some hints are there:
In the console, please use: history | grep -i pg_dump – this command will show the bash history narrowed down to pg_dump command. You can then check the corresponding folder where the dump was put into, and delete it if needed. In case there is no pg_dump in bash history, you can always check /servers/files/ if there are some leftover unneeded files.