Section: Maintenance Commands (8)
Updated: 30 Jun 2010
The savelog command saves and optionally compresses old copies of files. Older versions of file are named:
where <number> is the version number, 0 being the newest. Version numbers > 0 are compressed unless -l prevents it. Version number 0 is not compressed because a process might still have file opened for I/O. Only cycle versions of the file are kept.
If the file does not exist and -t was given, it will be created.
For files that do exist and have lengths greater than zero, the following actions are performed:
For xz no strength option is set, and xz decides on the default based on the total amount of physical RAM. Note that xz can use a very large amount of memory for the higher compression levels.
If a process is still writing to file.0, and savelog moves it to file.1 and compresses it, data could be lost.
Tutoriais de Tecnologia Web