.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "backup.sh" "1" "April 4, 2024" "Marco Cetica" "General Commands Manual" .hy .SH NAME .PP \f[B]backup.sh\f[R] - POSIX compliant, modular and lightweight backup utility to save and encrypt your files. .SH SYNOPSIS .IP .nf \f[C] Syntax: ./backup.sh [-b|-c|-e|-h] options: -b|--backup SOURCES DEST PASS Backup folders from SOURCES file. -c|--checksum Generate/check SHA256 of a backup. -e|--extract ARCHIVE PASS Extract ARCHIVE using PASS. -h|--help Show this helper. \f[R] .fi .SH DESCRIPTION .PP \f[B]backup.sh\f[R] is a POSIX compliant, modular and lightweight backup utility to save and encrypt your files. This tool is intended to be used on small scale UNIX environment such as VPS, small servers and workstations. \f[B]backup.sh\f[R] uses \f[I]rsync\f[R], \f[I]tar\f[R], \f[I]sha256sum\f[R] and \f[I]gpg\f[R] to copy, compress, verify and encrypt the backup. .SH OPTIONS .PP \f[B]backup.sh\f[R] supports three options: \f[B]backup creation\f[R], \f[B]backup extraction\f[R] and \f[B]checksum\f[R] to verify the integrity of a backup. The first option requires root permissions, while the second one does not. The checksum option must be used in combination of one of the previous options. .SS Backup creation .PP To specify the directories to back up, \f[V]backup.sh\f[R] uses an associative array defined in a text file(called \f[I]sources file\f[R]) with the following syntax: .IP .nf \f[C]