This script is based on https://github.com/stevenbraham/mysql-backup and https://github.com/ptillemans/davpush/
We cannot use davfs (no fuse available) so this version use cadaver to upload everything.
- Make sure you have all modules installed and perl 5.30 >=
- Rename
config.sample.yamltoconfig.yaml - Fill out
config.yamlwith your information - Create a cron or run
backup.pl
- YAML::XS
- DBI
- DBD::mysql
- DateTime
libyaml-libyaml-perl libclass-dbi-perl libdbd-mysql-perl expect libdatetime-perl
yum install perl perl-CPAN expect
cpan -i YAML::XS DBI DBD::mysql DateTime
This one is intended to backup mysql db and the config file include a list of database that will be excluded.
It use files parameter in the config.yaml where you can define the path where the files need to be backupped every day.
Instead if you need as example to backup other files files_others and run the script with --others you can have another subset of files. In this as example you have some files to backup daily and others just weekly, you can use the same script.