Skip to content

CLI application for DatabaseToolKit. Designed for developers to script behavior without using GUI.

Notifications You must be signed in to change notification settings

MonitoringSolutionsInc/DatabaseCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DatabaseCLI

CLI application for DatabaseToolKit. Designed for developers to script behavior without using GUI.

Installation

The project already comes with a version controlled virtual environment for script execution and testing. Simply clone the repository and open using PyCharm. It's way easier to just install PyCharm and clone the repository using PyCharm's built in GUI. You can get PyCharm, JetBrains' Python IDE, for free here: https://www.jetbrains.com/pycharm/ . Be sure to follow their distribution rules.

Once installed and cloned, you must start the virtual environment. Start the virtual environment by running:

.\venv\Scripts\activate.bat

If using PowerShell then use:

.\venv\Scripts\Activate.ps1

If the above is not available to you, follow the steps within the link to add a new virtual environment: jetbrains.com/help/pycharm/creating-virtual-environment.html#python_create_virtual_env

Then download / install the dependencies:

pip install -r requirements.txt

Command Usage

Now try running the following command for execute a full backup of all databases on your SQLEXPRESS instance:

backup --full-backup True C:\CEMDAS\temp

You can even output the above command's output to an external file:

backup --full-backup True C:\CEMDAS\temp >> BackupLog.log

If you need help with a certain command, run the following:

command --help

Alternatively, you can open a GitHub issue and label it with question. https://github.com/MonitoringSolutionsInc/DatabaseCLI/issues

Future Features

More features are coming. I plan to add time frame specific backups, overwriting options, and various restore features. I have a few other ideas on the brain but this is a super early / WIP state.s

About

CLI application for DatabaseToolKit. Designed for developers to script behavior without using GUI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages