--- title: backup.sh section: 1 header: General Commands Manual footer: Marco Cetica date: March 14, 2023 --- # NAME **backup.sh** is a POSIX compliant, modular and lightweight backup utility to save and encrypt your files. # SYNOPSIS ``` Syntax: backup.sh [-b|-e|-h] options: -b|--backup SOURCES DEST PASS Backup folders from SOURCES file. -e|--extract ARCHIVE PASS Extract ARCHIVE using PASS. -h|--help Show this helper. ``` # DESCRIPTION **backup.sh** 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. **backup.sh** uses _rsync_, _tar_ and _openssl_ to copy, compress and encrypt the backup. # OPTIONS **backup.sh** supports two options: _backup creation_ and _backup extraction_. The former requires root permissions, while the latter does not. Let us see them in details: ## Backup creation To specify the directories to backup, **backup.sh** uses an associative array defined in a text file(called sources file) with the following syntax: ```