|
5 years ago | |
---|---|---|
DEBIAN | 5 years ago | |
etc | 5 years ago | |
usr/local | 5 years ago | |
var | 5 years ago | |
CHANGELOG.md | 5 years ago | |
LICENSE | 6 years ago | |
README.md | 5 years ago |
README.md
Brid
Little backup tool for Linux coded in bash.
You can save your SQL databases, SVN repo, Websites and all files as you want.
Brid create an archive of your data before transfer via SSH, SFTP or FTP. He support MariaDB and MySQL databases system and PostgreSQL in beta.
Brid can notify you via success and error mail. You can schedule mail report via cron.
Note :
Brid create a copy all data on local filesystem, there is a risk that brid fills the disk space.
You can change the working directories in the config file.
Brid name
Brid or Brigit is celte goddess. She incarnate protection. Perfect for this tool who save your data.
Install
Require: rsync, tar (with xs-utils), gzip, ping, ssh, ftp, netcat and exim4 (or postfix) configured for mailing
Optional: mysqldump or pg_dump/pg_dumpall for backup SQL
From source
# git clone git@git.clamifa.net:clm/brid.git
# mkdir brid-{version}
# cp -Rp brid/* brid-{versio}/
# find brid-{version}/ -name ".git*" -exec rm {} \;
# dpkg-deb --build brid-{version}
With Debian package
# dpkg -i brid-{version}.deb
Settings
All settings are in /etc/brid/brid.conf
. So you need to rename brid.conf.dft
after installation.
You can create many custom config files in this directory.
For data, you need to edit whitelist.lst
and blacklist.lst
files in /etc/brid/
.
- The
whitelist.lst
file define one path by line of a directory or files as you want to backup. - The
blacklist.lst
file exclude directory or files as you don't want to backup.
Reporting
I don't recommend using the "-m" option for sending success mail after all backups. Because this type of mail quickly becomes "spam".
To solve this problem, it's possible to schedule the generation of reports with cron and history option.
Exemple of schedule weekly report:
00 01 * * 1 root /usr/local/bin/brid -D 7 -H | mail -s "Weekly backup report" address@domain.cn
If an admin delete scheduling a backup by mistake, this report will show it.
Usage
Read the man page or see help.
$ man brid
$ sudo brid -h
License
Brid is distribuate in GNU GPLv3, see licence terms for more details.