Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 1.56 KB

README.md

File metadata and controls

48 lines (42 loc) · 1.56 KB


DevOps Projects
Log Archive Tool

Compress your logs folder and export it to another place

FunctionsDownloadHow to use itCredits

Functions

With this script you will be able to...

  • Makes a backup of your logs in tar.gz
  • Creates a folder named archive_logs.
  • Creates a .txt file with all your executes of the script.

Download

First of all you'll need git intalled on your server/machine. If you dont haven't, check the follow link. Git You need to clone this repository like this:

$ git clone https://github.com/matiasdante/log-archive-tool.git

How to use it

  1. Next, you need to access the folder with:
$ cd log-archive-tool
  1. Then, you can just run a ls -la to list the folder contents, and you will see log-archive-tool.sh. Run the following command:
$ chmod +x log-archive-tool.sh

This will give execution permission to the file. Now you can easily execute it.

  1. Launch the script:
$ ./log-archive-tool.sh <$LOGS_FOLDER_PATH>

Credits