SMA Backup Service is a worker service which is installed in windows services or linux Systemd to automate backups. SMA Backup Service is able to create backup and upload to online backup storages.
SMA Backup Service is currently under development and only supports SQL Server and MongoDb databases as backup source and FileSystem and Google drive as backup destination.
SMABackup.Service uses SMABackup library in order to process backup config file, create backup and upload to desired destination.
{
"Daily": [
{
"Hour": "00",
"Minute": "21"
}
]
}
{
"Source": [
{
"Type": "SqlServer",
"Name": "ProjectA_SqlServer",
"ServerName": ".",
"Username": "sa",
"Password": "123456",
"DatabaseName": "projecta_db"
},
{
"Type": "MongoDb",
"Name": "ProjectB_MongoDb",
"CollectionName": "projectb",
"HostName": "localhost",
"Username": "projectb",
"Password": "123456"
},
{
"Type": "MongoDb",
"Name": "ProjectC_MongoDb",
"CollectionName": "projectc",
"HostName": "localhost"
}
],
"Destination": [
{
"Type": "GoogleDrive",
"Name": "MyAccount@gmail.com_GoogleDrive",
"ClientId": "00000000000-00000000000000000000000000000000.apps.googleusercontent.com",
"ClientSecret": "0000000000000000000000",
"ApplicationName": "AppNameInGoogleDrive"
}
],
"Backup": [
{
"Source": "ProjectA_SqlServer",
"Destination": "MyAccount@gmail.com_GoogleDrive",
"PostBackup": {
"DeleteBackup": "True"
}
},
{
"Source": "ProjectB_MongoDb",
"Destination": "MyAccount@gmail.com_GoogleDrive",
"PostBackup": {
"DeleteBackup": "True"
}
},
{
"Source": "ProjectC_MongoDb",
"Destination": "MyAccount@gmail.com_GoogleDrive",
"PostBackup": {
"DeleteBackup": "True"
}
}
]
}
- 1.0.0
- Initialized SMA Backup Service
Saeed Aghdam – Linkedin
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/saeedmaghdam/
-
Fork it (https://github.com/saeedmaghdam/SMABackup.Service/fork)
-
Create your feature branch (
git checkout -b feature/your-branch-name
) -
Commit your changes (
git commit -am 'Add a short message describes new feature'
) -
Push to the branch (
git push origin feature/your-branch-name
) -
Create a new Pull Request