Skip to content

Shell script to archive log directory. This script should be scheduled using cron.

License

Notifications You must be signed in to change notification settings

probal31/log-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

log-archive

Shell script/Utility to archive log directory.
This script should be scheduled using cron.

Command: 0 0 * * * <GIT_REPO_LOCATION>/backup_log.sh <LOG_FOLDER_LOCATION> >> cron.log 2>&1

<GIT_REPO_LOCATION> is where the project log-archive has been cloned.
<LOG_FOLDER_LOCATION> is where the log files are available that needs to be archived. The script will create a archive folder inside the <LOG_FOLDER_LOCATION> and stores the archives of the log files.

The above command can be configured via crontab.
This will schedule the backup script to run everyday at 12:00AM

About

Shell script to archive log directory. This script should be scheduled using cron.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages