Skip to content

matiasdante/log-archive-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation


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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages