Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/appwebd/perl-mysql-backups-all-databases
- Owner: appwebd
- License: mit
- Archived: true
- Created: 2017-04-27T01:13:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T12:25:49.000Z (about 5 years ago)
- Last Synced: 2024-09-25T19:51:15.109Z (3 months ago)
- Topics: amazon-s3-storage, backups, cron-jobs, mysql-database, perl-script, scripting, sql
- Language: Perl
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.