Skip to content

Commit 39154a4

Browse files
Rename project from DbBackupCLI to BackupFlowCLI
- Update project namespace across all files - Rename project file and solution file - Update project description and metadata - Add pg_hba.conf configuration file
1 parent fbff29a commit 39154a4

14 files changed

+30
-13
lines changed

DbBackupCLI.csproj BackupFlowCLI.csproj

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
7+
<Version>1.0.0</Version>
8+
<Authors>Handren</Authors>
9+
<Description>A CLI tool for seamless database(MongoDB, PostgreSQL) backup and restore operations</Description>
10+
<RootNamespace>BackupFlowCLI</RootNamespace>
11+
<AssemblyName>BackupFlowCLI</AssemblyName>
12+
<ImplicitUsings>enable</ImplicitUsings>
713
<Nullable>enable</Nullable>
8-
<UserSecretsId>5c51f501-ed8f-4057-b352-dfcb166225d8</UserSecretsId>
914
</PropertyGroup>
1015

1116
<ItemGroup>

BackupOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.CommandLine;
22

3-
namespace DbBackupCLI;
3+
namespace BackupFlowCLI;
44

55
public class BackupOptions
66
{

DbBackupCLI.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.5.002.0
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DbBackupCLI", "DbBackupCLI.csproj", "{80EE5813-6A06-45DE-93E7-642C9E355A97}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BackupFlowCLI", "BackupFlowCLI.csproj", "{80EE5813-6A06-45DE-93E7-642C9E355A97}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

MongoBackupAnalyzer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Diagnostics;
22
using Spectre.Console;
33

4-
namespace DbBackupCLI;
4+
namespace BackupFlowCLI;
55

66
public class MongoBackupAnalyzer : IBackupAnalyzer
77
{

MongoBackupService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using MongoDB.Driver;
33
using Spectre.Console;
44

5-
namespace DbBackupCLI;
5+
namespace BackupFlowCLI;
66

77
public class MongoBackupService
88
{

MongoOplogBackupService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using MongoDB.Driver;
33
using Spectre.Console;
44

5-
namespace DbBackupCLI;
5+
namespace BackupFlowCLI;
66

77
public class MongoOplogBackupService : IDisposable
88
{

MongoRestoreService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using MongoDB.Driver;
33
using Spectre.Console;
44

5-
namespace DbBackupCLI;
5+
namespace BackupFlowCLI;
66

77
public class MongoRestoreService
88
{

PostgresBackupAnalyzer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Diagnostics;
22
using System.Text.RegularExpressions;
33

4-
namespace DbBackupCLI;
4+
namespace BackupFlowCLI;
55

66
public class PostgresBackupAnalyzer : IBackupAnalyzer
77
{

PostgresBackupService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Diagnostics;
22
using Spectre.Console;
33

4-
namespace DbBackupCLI;
4+
namespace BackupFlowCLI;
55

66
public enum PostgresBackupType
77
{

PostgresRestoreService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Diagnostics;
22
using Spectre.Console;
33

4-
namespace DbBackupCLI;
4+
namespace BackupFlowCLI;
55

66
public class PostgresRestoreService
77
{

PostgresWalBackupService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Amazon.S3.Model;
44
using Spectre.Console;
55

6-
namespace DbBackupCLI;
6+
namespace BackupFlowCLI;
77

88
public class PostgresWalBackupService : IDisposable
99
{

Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Runtime.InteropServices;
66
using Amazon.S3;
77
using Amazon.S3.Model;
8-
using DbBackupCLI;
8+
using BackupFlowCLI;
99
using Spectre.Console;
1010

1111
public interface IBackupAnalyzer

S3Service.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Amazon.S3.Model;
33
using Spectre.Console;
44

5-
namespace DbBackupCLI;
5+
namespace BackupFlowCLI;
66

77
public class S3Service
88
{

pg_hba.conf

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TYPE DATABASE USER ADDRESS METHOD
2+
# "local" is for Unix domain socket connections only
3+
local all all trust
4+
# IPv4 local connections:
5+
host all all 127.0.0.1/32 trust
6+
host all all 172.0.0.0/8 trust
7+
# IPv6 local connections:
8+
host all all ::1/128 trust
9+
# Allow replication connections
10+
host replication all 127.0.0.1/32 trust
11+
host replication all 172.0.0.0/8 trust
12+
host replication all ::1/128 trust

0 commit comments

Comments
 (0)