Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennedy-was-taken/database
https://github.com/kennedy-was-taken/database
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kennedy-was-taken/database
- Owner: Kennedy-was-taken
- Created: 2025-01-04T14:31:56.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2025-01-04T17:44:36.000Z (5 days ago)
- Last Synced: 2025-01-04T18:32:04.747Z (5 days ago)
- Language: C#
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Process tab](https://img.shields.io/badge/status-in_progress-F14A00)
![updates](https://img.shields.io/badge/future_updates-yes-4DA1A9)# Database Backup
This C# console application provides a convenient interface for manually backing up your Microsoft SQL Server databases.
## Prerequisites
Requirements for the software to work
1. Download and install ASP.NET Core Runtime 9.0.0
2. Download and install SQL Server## Features:
1. **User-Driven Backups**: Easily initiate database backups on demand.
2. **User-Friendly Interface**: Intuitive console interface for easy navigation and execution.
3. **NET 9 Framework**: Built on the latest .NET framework for optimal performance and compatibility.
4. **SQL Server Support**: Currently supports Microsoft SQL Server databases. Support for other databases will be added in future releases.## Installing
A step by step series of examples that will show you how to get program to run on CLI from anywhere
1. **Clone the repository:**
1.1. Clone the repository onto your local machine at root level
https://github.com/Kennedy-was-taken/database.git
1.2. You can delete the TestDatabase folder as there is no need for that folder
2. **Set up environment:**
2.1. Copy the path where the is found database.exe. example :
\database\database\bin\Debug\net9.0
2.2. Open run `win + r`
![run](./images/command.png)
2.3. Type `sysdm.cpl` to open system properties, click on the Advance tab. Under the Advance tab, click on the Environment Vairable button.
![command](./images/environment.png)
2.4. Under the system variable, select "Path" and click the edit button.
![select](./images/path.png)
2.5. Click the "New" button and paste in the relative path you copied and click "OK" to accept all changes.![add_path](./images/setPath.png)
2.6. Now the program can be called from anywhere by typing `database` on the CLI
3. **Set up DataBase Configuration:**
3.1. Open the file appsetting.json found here
"C:\database\database\appsettings.json"
3.2. Replace the "Server" name with your Sql server name, replace "User ID" with your account username and replace "Password" with the account user's password
![jsonFile](./images/json.png)
## Backup file location
The generated backup file .bak will be stored in the default Backup location e.g :
C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\Backup
## Future Updates
Well be working on adding Postgre and Oracle next.