Go to file
Llewellyn van der Merwe 0bcf85a890
update the clone url to work for all
2018-07-04 15:32:39 +02:00
.gitignore Initializing system-backup repository 2017-06-05 12:23:04 -04:00
LICENSE Initializing system-backup repository 2017-06-05 12:23:04 -04:00
README.md update the clone url to work for all 2018-07-04 15:32:39 +02:00
config.txt added the date switch and updated the readme with clone details 2017-06-05 17:54:16 +01:00
databases.txt Initializing system-backup repository 2017-06-05 12:23:04 -04:00
folders.txt Initializing system-backup repository 2017-06-05 12:23:04 -04:00
incl.sh Adapted the script to run more stable 2018-07-04 15:27:40 +02:00
main.sh Adapted the script to run more stable 2018-07-04 15:27:40 +02:00
run.sh Adapted the script to run more stable 2018-07-04 15:27:40 +02:00

README.md

Backup System for server:


The Bash scripts used to backup database and folders on a server

Features

  • Cross platform
  • Fast and effective backups
  • Ability to track changes
  • Historical records
  • Preserve the folder structure
  • Recourse friendly

Getting started

Clone Repository

   $ git clone https://github.com/vdm-io/Backup-System.git system-backup

Rename config.txt to config.sh and update the values in the file.

   $ mv config.txt config.sh

Rename folders.txt to folders and update the values in the file.

   $ mv folders.txt folders

Rename databases.txt to databases and update the values in the file.

   $ mv databases.txt databases

Make sure all the needed files are executable

   $ chmod +x run.sh
   $ chmod +x main.sh
   $ chmod +x incl.sh
   $ chmod +x config.sh

Run the script

   $ ./run.sh

Tested Environments

  • GNU Linux

If you have successfully tested this script on others systems or platforms please let me know!

Running as cron job

Get the full path to the run.sh file. Open https://crontab.guru to get your cron time settings. Open the crontab:

   $ crontab -e

With your cron time, add the following line to the crontab, using your path details:

5 03 * * * /path/to/run.sh >/dev/null 2>&1

your time | your path | to ignore messages

GIT, BASH

Debian & Ubuntu Linux:

    sudo apt-get install bash (Probably BASH is already installed on your system)
    sudo apt-get install git

Copyright: