{"id":15002922,"url":"https://github.com/adel-bz/mssql-backup-script-s3","last_synced_at":"2026-03-14T22:16:26.607Z","repository":{"id":241496717,"uuid":"806499949","full_name":"adel-bz/MSSQL-Backup-Script-S3","owner":"adel-bz","description":"Backup script for MSSQL Database \u0026 sending to S3","archived":false,"fork":false,"pushed_at":"2024-05-27T12:01:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T13:56:25.715Z","etag":null,"topics":["aws-s3","backup-database","bash-script","iam-policy","mssql-database","ubuntu-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/adel-bz.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":"2024-05-27T10:11:53.000Z","updated_at":"2024-05-28T07:09:43.000Z","dependencies_parsed_at":"2024-05-28T19:52:35.306Z","dependency_job_id":"cbb06048-0210-4b61-abed-454692383845","html_url":"https://github.com/adel-bz/MSSQL-Backup-Script-S3","commit_stats":null,"previous_names":["adel-bz/mssql-backup-script-s3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FMSSQL-Backup-Script-S3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FMSSQL-Backup-Script-S3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FMSSQL-Backup-Script-S3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FMSSQL-Backup-Script-S3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adel-bz","download_url":"https://codeload.github.com/adel-bz/MSSQL-Backup-Script-S3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243153637,"owners_count":20244795,"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":["aws-s3","backup-database","bash-script","iam-policy","mssql-database","ubuntu-server"],"created_at":"2024-09-24T18:53:58.798Z","updated_at":"2025-12-25T23:26:32.699Z","avatar_url":"https://github.com/adel-bz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MSSQL-Backup-Script-S3\n\n# Introduction\nThis repository contains a script for backing up MSSQL databases and sending them to an AWS S3 bucket. The script is designed to automate the backup process, making it easy to ensure that your MSSQL data is regularly backed up and stored securely on AWS S3.\n\n# Features\n- Automated backup of MSSQL databases.\n- Support for sending backups directly to an AWS S3 bucket.\n- Easy setup and configuration.\n- Monitoring the backup process by sending the alert to Discord.\n\n# Prerequisites\nBefore using this script, ensure you have the following prerequisites installed:\n- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) and configured IAM user\n- [MSSQL Container](https://github.com/adel-bz/MSSQL-Database) on an Ubuntu server\n\n# Usage\n1. Clone this repository to your local machine:\n\n``` \ngit clone https://github.com/adel-bz/MSSQL-Backup-Script-S3.git \n```\n2. Configure the script by editing the ```.env``` file:\n```\n## Container \u0026 Database Environments\nCONTAINER_NAME=\"database_container_name\"\nSA_PASSWORD=\"database_password\"\nDB_NAMES=(\"master\" \"dbname_1\" \"dbname_2\" \"dbname3\" \"dbname4\") # doesn't delete/change \"master\"\nDB_BAK_HOST_DIR=\"/srv/backup/db/\"\nDB_PREFIXNAME=\"db_backup_file_prefixname_\"\n\n## S3 Environments\nBUCKET_NAME=\"your_bucket_name\"\n\n## Other ENV\ndate=$(date +%Y-%m-%d_%Hh%Mm)\nGREEN='\\033[0;32m'\nRED='\\033[0;31m'\nNC='\\033[0m'\ndiscord_url='discord_webhook_url'\n```\n3. Run the script manualy:\n```\nsudo bash backup.sh\n```\n- Or use crontab\n```\n0 */12 * * * bash /srv/backup-script/backup.sh \u003e\u003e /var/log/backup.log\n```\n\n4. Verify that the backups have been successfully uploaded to the specified S3 bucket.\n#\n\nFeel free to customize this template according to your specific requirements and preferences. Let me know if you need further assistance!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadel-bz%2Fmssql-backup-script-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadel-bz%2Fmssql-backup-script-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadel-bz%2Fmssql-backup-script-s3/lists"}