Mysqldump is a django package that is used to generate the logical backup of the MySQL database
Project description
Mysqldump is a django package used to generate the database backup(s) and to restore it.
Installation
* pip install mysqldump
* Add 'backupdb' to your 'settings.py'
* Run the below command to backup all database(s) configured inside *settings.py*
* ./manage.py backupdb
setting.py
** Installed apps: **
INSTALLED_APPS = [
'backupdb',
]
** TMP_DIR **
TMP_DIR = '/var/www/html/my_project/tmp/'
By default package will use system tmp directory.
** DUMP_DIR **
DUMP_DIR = '/var/www/html/my_project/backup_dir/'
Specify the location to store the dumped data.
Commands
if you use the backupdb option alone, entire database(s) are dumped.
./manage.py backupdb
Running backupdb:
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 backupdb --databases db_name1 db_name2 ....
Running backupdb:
Selected Database: db_name1
Processing file: 20201130095543386091_db_name1.dump
Dump completed on 2020-Nov-30 09:55:43
Running backupdb:
Selected Database: db_name1
Processing file: 20201130095543920698_db_name2.dump
Dump completed on 2020-Nov-30 09:55:43
To compress the dump data with gzip.
-gz, --compress
./manage.py backupdb --compress
Running backupdb:
Selected Database: db_name1
Processing file: 20201130095543386091_db_name1.dump.gz
Dump completed on 2020-Nov-30 09:55:43
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mysqldump-0.0.7.tar.gz
(9.6 kB
view details)
File details
Details for the file mysqldump-0.0.7.tar.gz.
File metadata
- Download URL: mysqldump-0.0.7.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de62f47381aabfabbd47fc97f5fd4d0d38359435ea0b20a9d4591bbef2ad6eb5
|
|
| MD5 |
4c54b2583567f430c17c644e6d5864d6
|
|
| BLAKE2b-256 |
9de0031ddee9a5054d6f6b92aab1a222ac400cb229aebe4bcf0624fd817b9de9
|