Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.19 KB

readme.md

File metadata and controls

41 lines (26 loc) · 1.19 KB

About

This script is based on https://github.com/stevenbraham/mysql-backup and https://github.com/ptillemans/davpush/

Differences

We cannot use davfs (no fuse available) so this version use cadaver to upload everything.

How to use

  1. Make sure you have all modules installed and perl 5.30 >=
  2. Rename config.sample.yaml to config.yaml
  3. Fill out config.yaml with your information
  4. Create a cron or run backup.pl

Required CPAN libraries

  • YAML::XS
  • DBI
  • DBD::mysql
  • DateTime

Debian

libyaml-libyaml-perl libclass-dbi-perl libdbd-mysql-perl expect libdatetime-perl

Centos

yum install perl perl-CPAN expect
cpan -i YAML::XS DBI DBD::mysql DateTime

backup.pl

This one is intended to backup mysql db and the config file include a list of database that will be excluded.

backup-file.pl

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.