SecureSnap Backup is used for automated backup of files and directories on Linux desktop systems or Linux servers. It supports full and incremental backups, backs up the installation state of the system and MySQL databases (optional). Furthermore, all steps are entered into a log file.
The configuration is done via a YAML file in which backup destinations, MySQL information and compression settings are specified.
mysqldump (if MySQL databases are to be backed up)tar for archivingpytest for testingTo run the program, the following Python modules are installed with apt install to make them available system-wide for a cron job:
apt-get update
apt install python3 python3-yamlClone the project onto your Linux system
git clone https://github.com/itlinuxmaker/SecureSnap.git Change to the project directory and follow these steps:
cd SecureSnap/src/securesnap
mkdir -p /etc/securesnap cp backup_config.yaml /etc/securesnap/
cp securesnap.py /usr/local/bin/
vi /etc/securesnap/backup_config.yaml
python3 /usr/local/bin/securesnap.py
sudo crontab -e
Add the following line to run the backup every Friday at 21:00 as example:
00 21 * * Fri /usr/local/bin/securesnap.sh
The program is licensed under the GNU General Public License v3.0 or later in 2024.
IN NO EVENT WILL I BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, THOSE RESULTING FROM LOST PROFITS, LOST DATA, LOST REVENUE OR BUSINESS INTERRUPTION) ARISING OUT OF THE USE, INABILITY TO USE, OR THE RESULTS OF USE OF, THIS PROGRAM. WITHOUT LIMITING THE FOREGOING, I SHALL NOT BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES THAT MAY RESULT FROM THE USE OF THIS SCRIPT OR ANY PORTION THEREOF WHETHER ARISING UNDER CONTRACT, NEGLIGENCE, TORT OR ANY OTHER LAW OR CAUSE OF ACTION. I WILL ALSO PROVIDE NO SUPPORT WHATSOEVER, OTHER THAN ACCEPTING FIXES AND UPDATING THE SCRIPT AS IS DEEMED NECESSARY.