This application is to help you backup log files from a server.
log-archive takes a directory as a parameter and creates a tar.gz archive of the specified directory. The tar.gz filename includes the date and time the program was run.
This is just one method of completing this task, in this case it is done in C. However a bash script could achieve the same thing quite easily.
git clone https://github.com/xunilnz/log-archive.git
cd log-archive
gcc log-archive.c -o log-archive
sudo mv ./log-archive /usr/local/bin/log-archive
log-archive </directory/to/archive/> </directory/to/store/archive/>
Example
➜ log-archive git:(main) ./log-archive /var/log/apt/ ~/backup
The above will archive the content of /var/log/apt and store the .tar.gz in your home folder under backup.