Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1vank1n/mysqldump-dropbox
Create dump your MySQL. Compress each database. Upload to dropbox.
https://github.com/1vank1n/mysqldump-dropbox
bash dropbox dump mysql
Last synced: about 2 months ago
JSON representation
Create dump your MySQL. Compress each database. Upload to dropbox.
- Host: GitHub
- URL: https://github.com/1vank1n/mysqldump-dropbox
- Owner: 1vank1n
- License: mit
- Created: 2018-09-07T08:35:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-03T08:49:28.000Z (7 months ago)
- Last Synced: 2024-06-03T10:50:12.868Z (7 months ago)
- Topics: bash, dropbox, dump, mysql
- Language: Shell
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
1. Create dump all databases of MySQL server.
2. Compress gzip (filename looks like `database.sql.gz`)
2. Upload to Dropbox via [Dropbox-Uploader](https://github.com/andreafabrizi/Dropbox-Uploader)
4. (Un)Remove local backups (configure via SAVE_LOCAL)# Installation
git clone https://github.com/1vank1n/mysqldump-dropbox.git
# Usage
Two steps.
*First*. Register your app in dropbox. For hint, just start `bash dropbox_uploader.sh`
*Second*. Edit `VARS` section in `mysql2dropbox.sh`.
MYSQL_USER=""
MYSQL_PASS=""
BACKUPS_DIR="./backups" -- folder for local backups
REMOTE_FOLDER="example" -- folder for dropbox
DROPBOX_UPLOADER="./dropbox_uploader.sh" -- path to dropbox_uploader.sh script
DROPBOX_UPLOADER_CONFIG="./.dropbox_uploader" -- config of dropbox_uploader
SAVE_LOCAL=false -- save/remove files in BACKUPS_DIR after they uploaded to Dropbox# Crontab
0 0 * * * cd /root/DIRECTORY_WITH_SCRIPTS; ./mysql2dropbox.sh &>> ./mysql2dropbox.log