Skip to content

Upload your mysql dump to webdav with cadaver

License

Notifications You must be signed in to change notification settings

CodeAtCode/mysql-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Upload your mysql dump to webdav with cadaver

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Perl 100.0%