https://github.com/milanowicz/syncdb.sh
A Git optimized BASH Shell Script to dump or insert from MySQL Database, and commit it into the Git repository.
https://github.com/milanowicz/syncdb.sh
Last synced: 2 months ago
JSON representation
A Git optimized BASH Shell Script to dump or insert from MySQL Database, and commit it into the Git repository.
- Host: GitHub
- URL: https://github.com/milanowicz/syncdb.sh
- Owner: milanowicz
- License: gpl-3.0
- Created: 2014-08-17T21:05:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-07T09:27:27.000Z (almost 10 years ago)
- Last Synced: 2025-01-23T21:26:05.597Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 176 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [SyncDB.sh](https://github.com/Milanowicz/SyncDB.sh)
A Git optimized BASH Shell Script to dump or insert from MySQL Database, and commit it into the repository.
## Install
Set parameter for the SyncDB.sh script to do the job.
Project/local.sh
Project/db/SyncDB.sh
## General Usage
Show license from SyncDB.sh script.
$ . local.sh license
Show script filename
$ . local.sh script
Show script version$ . local.sh version
## Develop usage
Insert Sql files into the Database.
$ . local.sh sync
Insert Sql files into the Database with User data.
$ . local.sh sync user
Dump Database into Sql dump files.
$ . local.sh dump
Dump Database into Sql dump files with User data.
$ . local.sh dump user
Generate one file from five files.
$ . local.sh dumpfulle
## Special operations
Dump Database into the Database SQL file.
$ . local.sh dumpfile
Insert SQL Backup file into the Database back.
$ . local.sh syncfile
Complete SQL Database Backup file and order by primary keys.
$ . local.sh dumpcomplete
## License
[GNU GPL Version 3](http://www.gnu.org/copyleft/gpl.html)