{"id":15002894,"url":"https://github.com/mavstuff/simpledbbackup","last_synced_at":"2026-02-24T19:32:11.665Z","repository":{"id":87863814,"uuid":"124272296","full_name":"mavstuff/SimpleDBBackup","owner":"mavstuff","description":"Simple SQL Server database backup utility","archived":false,"fork":false,"pushed_at":"2024-10-17T11:57:40.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-17T19:49:25.680Z","etag":null,"topics":["csharp","dotnet","dotnet-framework","mssql","mssqlserver","sql","sqlserver","windows"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mavstuff.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-07T17:42:51.000Z","updated_at":"2024-10-17T12:04:58.000Z","dependencies_parsed_at":"2023-03-13T18:36:43.302Z","dependency_job_id":null,"html_url":"https://github.com/mavstuff/SimpleDBBackup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSimpleDBBackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSimpleDBBackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSimpleDBBackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSimpleDBBackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mavstuff","download_url":"https://codeload.github.com/mavstuff/SimpleDBBackup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225084292,"owners_count":17418374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","dotnet-framework","mssql","mssqlserver","sql","sqlserver","windows"],"created_at":"2024-09-24T18:53:56.711Z","updated_at":"2026-02-24T19:32:11.568Z","avatar_url":"https://github.com/mavstuff.png","language":"C#","readme":"# Simple SQLServer backup tool\n\nA simple C# utility project for creating backups of SQL Server databases on a schedule. The settings specify the names of the databases for which you want to create a backup, as well as the save directory. Old databases are automatically deleted.\n\nThe Settings block:\n\n```csharp\n/* Local SQL Server connecton string */\nstatic string connectionString=\"Server=localhost;Integrated Security=True\";\n\n//Optional:connect using credentials\n//static string connectionString = \"Server=localhost;user id=user2018;password=MYDBPASSWORD\";\n```\nHere you specify the Connection String to the database. In the simplest case, if you use a local server with the default settings, the first line is enough. If you want to connect to the server with login and password, uncomment and modify the second line.\n```csharp\n/* Database names to backup */\nstatic string[] saDatabases = new string[] { \"shop\", \"frontend\", \"accounting\" };\n```\nThis is an array with the database names on the server, for which you want to make a backup. If you need to make a backup of one database, you can do this:\n```csharp\nstatic string[] saDatabases = new string[] { \"shop\" };\n```\n\n```csharp\n/* Backup directory. Please note: Files older than DeletionDays old will be deleted automatically */\nstatic string backupDir = @\"C:\\DB_Backups\";\n```\n\n\nThis is the name of the directory for storing backups. **Please note that this directory should be used only for storing backups and not for anything else. Why? Because the files from this directory will be deleted after a certain period of rotation of the backup copies** (see below)\n```csharp\n/* Delete backups older than DeletionDays. Set this to 0 to never delete backups */\nstatic int DeletionDays = 10;\n```\n\nAfter the program is configured and compiled in the Release version, it is necessary to copy it together with the libraries in a separate directory, for example, C:\\SimpleDbBackup, also create a directory for the databases (in this example it\u0026#39;s C:\\DB\\_Backups)\n\nNow you need to create a periodic task with Windows Task Scheduler so that it runs on a schedule every day or twice a day, as you like. I suggest now you to create a task manually. Perhaps in the future I will add the function of creating a scheduled task in the code of the main program, but for now, I propose you do it manually.\n\nI will be happy with any comments and suggestions. If you need some some **custom software** to be developed, feel free to [contact me](https://iq.direct/contacts.html \"Custom Software Development - IQ Direct\").\n\nGood luck!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavstuff%2Fsimpledbbackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmavstuff%2Fsimpledbbackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavstuff%2Fsimpledbbackup/lists"}