Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pe46dro/bash-mysql-database-sftp-ftp-backup
A small script to upload backup of MySQL database to an external FTP server
https://github.com/pe46dro/bash-mysql-database-sftp-ftp-backup
backup ftp mysql sftp
Last synced: 3 months ago
JSON representation
A small script to upload backup of MySQL database to an external FTP server
- Host: GitHub
- URL: https://github.com/pe46dro/bash-mysql-database-sftp-ftp-backup
- Owner: Pe46dro
- License: gpl-3.0
- Created: 2014-12-26T19:36:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T20:35:27.000Z (over 7 years ago)
- Last Synced: 2023-10-20T22:17:51.277Z (about 1 year ago)
- Topics: backup, ftp, mysql, sftp
- Language: Shell
- Size: 18.6 KB
- Stars: 22
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
[Bash]MySQL Database FTP Backup
======================A small script to upload backup tar to an external FTP server
How it works:
* You need to change "user,password,host,db_name" with information of mysql database
* You need to change "USERNAME,PASSWORD,SERVER" with information of your serverIf you have some problem open an issues on GitHub
##FAQ;
* Q: How can I make backups automatic?
A: You can use crontab (on linux) [link](http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/)
* Q: Why can't I start the script?
A: Make the file executable (chmod +x script.sh)
* Q: Will this work on all linux distros?
A: This script was tested on Ubuntu 12/14,Debian and Centos 6 and has worked whitout any problems
* Q: Why SFTP don't work?A: You need to install "sshpass" ( apt-get install sshpass )