Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Log Archive

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.

Getting Started

Clone the repository

git clone https://github.com/xunilnz/log-archive.git
cd log-archive

Compile

gcc log-archive.c -o log-archive

Install

sudo mv ./log-archive /usr/local/bin/log-archive

Usage

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.

About

Linux CLI log archiver

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages