https://github.com/linuxluigi/success-backup-check
Backup tool witch sends email when something goes wrong
https://github.com/linuxluigi/success-backup-check
Last synced: 11 months ago
JSON representation
Backup tool witch sends email when something goes wrong
- Host: GitHub
- URL: https://github.com/linuxluigi/success-backup-check
- Owner: linuxluigi
- License: mit
- Created: 2016-11-21T22:10:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-07T19:34:06.000Z (almost 7 years ago)
- Last Synced: 2025-06-19T21:47:05.422Z (12 months ago)
- Language: Python
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Succes-Backup-Check
[](https://travis-ci.org/linuxluigi/success-backup-check)
[](https://coveralls.io/github/linuxluigi/success-backup-check?branch=master)
Move user files on a server from a place where the user has write rights & move it to an archive or backup folder, where
to user has no read or write access.
A use case example: Daily backup of a point-of-sale database. So that every point-of-sale device has only the current
database in the storage. The 2 server check in the operation when was the last backup & send an email if the current
database on the server is to old.

## Online Documentation
http://success-backup-check.readthedocs.io/en/latest/
# Quickstart
## Install
### Requirements
- https://www.smartmontools.org for hardware tests
Debian / Ubuntu::
$ sudo apt-get install smartmontools python3-pip git
Mac - Brew::
$ brew install smartmontools
### Install
Install it from online resource directly.
$ sudo python3 -m pip install git+git://github.com/linuxluigi/success-backup-check.git
Or download the archive from git & install it from there.
$ git clone git@github.com:linuxluigi/success-backup-check.git
$ cd success-backup-check
$ python setup.py install --user
## Usage
To run the program run:
$ success-backup-check
Or an example in crontab. (change your Python version)
$ python3 /usr/local/lib/python3.5/dist-packages/success_backup_check/__main__.py
## Config Example
Quick Example, for detail instruction read the documentation.
http://success-backup-check.readthedocs.io/en/latest/config.html
File: ```/etc/success_backup_check.conf```
[Mail]
From = from@example.com
To = to@example.com
ApiKey = YourSendGridApiKey
[Time]
days = 3
[Server]
ArchivDir = /srv/backup/daily_backup/
mode = active
file_typ = MDB
[BackupDirs]
MyDatabaseDir = /home/user/daily-db
UserWork = /home/user/done/work
[Logging]
log_level = WARNING
log_file = /var/log/succes_backup_check.log