Bash script for compressing data, useful for backup archives.
Tested on RHEL (CentOS) 6!
- compresses the data into .tar.xz using 4 cores, level of compression set to 9 (can easy be changed)
- stores previous archives in separate directory
- flexible configuration
- resources initial check (source, output, runtime directories read/write rights)
- checks for lock file (prevents script execution if source is still created)
- text formatting (bold, colored)
- e-mail sending on success and or fail
- outputs compression info (source size, archive size, compression ratio)
- logging and debugging (outputs more info about process)
- possibility to change std output (to console and log or log only)
- prompts (prevent accidental execution)
- exclusions (list of file/directories)