Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/appwebd/perl-mysql-backups-all-databases

Backup of all mysql database. Generate file with format name basename-date-time.sql
https://github.com/appwebd/perl-mysql-backups-all-databases

amazon-s3-storage backups cron-jobs mysql-database perl-script scripting sql

Last synced: 3 months ago
JSON representation

Backup of all mysql database. Generate file with format name basename-date-time.sql

Awesome Lists containing this project

README

        

# perl-mysql-backups-all-databases

Backup of all mysql database. Generate file with format name basename-date-time.sql. You must add it to the cron schema of your server.

## Installation
```
git clone https://github.com/appwebd/perl-mysql-backups-all-databases.git
```

## Customize

You must customize the following in your favorite terminal (Or any DCL command prompt). Set your local password with the following command

```

mysql_config_editor set --login-path=local --host=localhost --user=username --password

```

## Schedule Tasks on Linux (using Crontab)
Do the following command in your terminal console.
```
sudo crontab -e

```

add the following (like example):
```
0 0 * * * /home//bin/mysqlbackups.pl 2>&1 | mail -s "Cronjob ouput" [email protected]
```

or for your backup configuration on Amazon S3, you can perform:

```
0 0 * * * /home//bin/mysqlbackups-s3.pl 2>&1 | mail -s "Cronjob ouput" [email protected]
```

## License
mysqlbackups.pl is licensed under The MIT License (MIT). Which means that you can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. But you always need to state that Patricio Rojas Ortiz is the original author of this perl script.