Skip to content
 
 

Latest commit

 

History

21 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

关于

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.

关于

Upload your mysql dump to webdav with cadaver

Resources

Stars

0 stars

关注者

3 watching

复刻s

发布

贡献者

Languages