Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
Mysqldump is a django package to import and export mysql database.
* pip install mysqldump
* Add 'dbmanager' to your 'settings.py'
* Run the below command to backup all database(s) configured inside *settings.py*
```
$ ./manage.py exportdb
```
Installed apps:
Add 'dbmanager' to your 'settings.py'
INSTALLED_APPS = [
'dbmanager',
]
TMP_DIR
Package will use system default tmp directory, if not specified.
TMP_DIR = '/var/www/html/my_project/tmp/'
DUMP_DIR
By default dump file(s) will be stored in project container directory. Specify the location to store the dumped file(s).
DUMP_DIR = '/var/www/html/my_project/backup_dir/'
exportdb will dump all database(s) specified inside settings.py.
$ ./manage.py exportdb
Running exportdb:
Selected Database: db_name1
Processing file: 20201130095543386091_db_name1.dump
Dump completed on 2020-Nov-30 09:55:43
To dump specified database using database name.
-d, --databases
$ ./manage.py exportdb --databases db_name1 db_name2 ....
Running exportdb:
Selected Database: db_name1
Processing file: 20201130095543386091_db_name1.dump
Dump completed on 2020-Nov-30 09:55:43
Running exportdb:
Selected Database: db_name1
Processing file: 20201130095543920698_db_name2.dump
Dump completed on 2020-Nov-30 09:55:43
To archive the dump data with gzip.
-gz, --compress
$ ./manage.py exportdb --compress
Running exportdb:
Selected Database: db_name1
Processing file: 20201130095543386091_db_name1.dump.gz
Dump completed on 2020-Nov-30 09:55:43
To dump specified table from database.
-tbl, --tables
$ ./manage.py exportdb -d db_name1 --tables tbl_name1 tbl_name2
To ignore specified table from database(s).
itbl, --ignore-table
$ ./manage.py exportdb -d db_name1 --ignore-table db_name1.tbl_name1
$ ./manage.py exportdb -d db_name1 db_name2 --ignore-table db_name1.tbl_name1 db_name2.tbl_name2
importdb to restore the specified database.
By default package will check project container directory or DUMP_DIR for the file.
-f, --filename
$ ./manage.py importdb dbname1 -f db_name1.dump.gz
Running importdb:
Selected Database: db_name1
Processing file: db_name1.dump.gz
Restore completed on 2020-Nov-30 09:55:43
FAQs
Mysqldump is a django package to import and export mysql database.
We found that mysqldump demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.