A basic Python app to backup production data from Linux webservers.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Quentin Barrand 180a2b9c03 Only run the linting for Python 3.6. Remove a redundant file. 2 years ago
config.in Reorganize the project as a distributable package. 3 years ago
src/backup Improve type hints. 3 years ago
systemd Add systemd unit files. 3 years ago
.gitignore Add a gitignore. 3 years ago
.pylintrc Make pylint happy. 3 years ago
README.md Big revamping of the configuration file. Added the ability to upload the archive to one or several OpenStack Swift containers. 6 years ago
setup.cfg Add configuration for the CI toolchain. 3 years ago
setup.py Fix the package name. 3 years ago
tox.ini Only run the linting for Python 3.6. Remove a redundant file. 2 years ago

README.md

su7.info backup script

This script is used daily to backup important data from my production servers.

It backups the following :

  • MySQL databases from multiple instances
  • ... basically any directory you need on your filesystem !

All the data is tar.gz'd (so it keeps permissions, symbolic links and stuff) and uploaded to one or several FTP servers and / or one or several Swift containers you can configure.

Configuration :

Copy the config.example.py to config.py and fill it with your settings.
This file has to remain located in the same directory than backup.py.

Usage :

python2 backup.py

Contact

The main repository for this is on my Git server. You can contact me by email if you have any question.
Do not hesitate to contribute !