22 lines
512 B
Markdown
22 lines
512 B
Markdown
# Log Archive Tool
|
|
The tool to archive logs from the CLI with the date and time.
|
|
[Roadmap.sh project page](https://roadmap.sh/projects/log-archive-tool)
|
|
## Installation ##
|
|
```
|
|
git clone https://github.com/ami-chuu/log-archive-tool
|
|
cd log-archive-tool
|
|
chmod +x setup.sh
|
|
./setup.sh
|
|
```
|
|
## Usage ##
|
|
```
|
|
log-archive <log-directory>
|
|
```
|
|
## Output ##
|
|
```
|
|
Start archiving...
|
|
/var/log/nginx/access.log
|
|
/var/log/nginx/error.log
|
|
The archive has been saved at /var/log/log-archives/logs-archive_20251102_041057.tar.gz
|
|
```
|