Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple, lightweight CLI tool to compress and archive log files from any specified directory, with automatic timestamping and logging.

Notifications You must be signed in to change notification settings

wfoteping2101/log-archive-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Log Archive Tool

A simple, lightweight CLI tool to compress and archive log files from any specified directory, with automatic timestamping and logging.

This project helps automate log rotation and archiving in a clean and structured way, useful for system admins and DevOps engineers. Built entirely in Bash for portability across Unix-based systems.

This project is based on the Server Performance Stats (https://roadmap.sh/projects/log-archive-tool) project on roadmap.sh.


πŸ“¦ Features

  • Accepts any log directory as an argument
  • Compresses logs into .tar.gz format
  • Archives stored in a dedicated /archives directory
  • Archives are timestamped (e.g. logs_archive_20250419_154813.tar.gz)
  • Archives are logged in archive_log.txt
  • Supports /var/log or any custom path

πŸ›  Usage

./log-archive.sh /path/to/logs

About

A simple, lightweight CLI tool to compress and archive log files from any specified directory, with automatic timestamping and logging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages