{"id":23896675,"url":"https://github.com/ismail-mouyahada/script-backup-bash-windows","last_synced_at":"2026-05-19T04:38:09.501Z","repository":{"id":133465768,"uuid":"420249648","full_name":"Ismail-Mouyahada/Script-backup-bash-windows","owner":"Ismail-Mouyahada","description":"🎉 Exciting Release! Introducing version 1.0 of our Windows Backup Script, a simple Bash script designed to automate and streamline backups on Windows systems.","archived":false,"fork":false,"pushed_at":"2023-12-26T23:01:52.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T23:07:00.468Z","etag":null,"topics":["backup","script","windows"],"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/Ismail-Mouyahada.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}},"created_at":"2021-10-22T21:45:55.000Z","updated_at":"2023-12-26T23:17:45.000Z","dependencies_parsed_at":"2023-12-26T23:36:33.451Z","dependency_job_id":null,"html_url":"https://github.com/Ismail-Mouyahada/Script-backup-bash-windows","commit_stats":null,"previous_names":["ismail-mouyahada/script-backup-bash-windows"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Ismail-Mouyahada/Script-backup-bash-windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FScript-backup-bash-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FScript-backup-bash-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FScript-backup-bash-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FScript-backup-bash-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ismail-Mouyahada","download_url":"https://codeload.github.com/Ismail-Mouyahada/Script-backup-bash-windows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FScript-backup-bash-windows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33202000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["backup","script","windows"],"created_at":"2025-01-04T16:54:00.765Z","updated_at":"2026-05-19T04:38:09.484Z","avatar_url":"https://github.com/Ismail-Mouyahada.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell Script for Website Backup\n\n## Overview:\nThis script automates the backup process for a website, including its MySQL database. It creates a compressed tar archive containing virtual host configurations, website files, and a MySQL database dump.\n\n## Variables:\n- `today`: Holds the current date in \"YYYY-MM-DD\" format.\n- `destination_backup`: Specifies the destination folder for backups, assumed to be named \"backup\".\n- `vhost_path`: Indicates the path to Apache virtual host configuration files.\n- `source $1`: Sources a file specified as a command-line argument, likely containing specific configurations or variables.\n\n## Database Export:\n```bash\nmysqldump -u $db_login -p$db_pwd $db_name \u003e dbbackupfile\n```\n\nCertainly! If you were explaining this script on GitHub, you might provide a user-friendly description like this:\n\nbash\n\n# Shell Script for Website Backup\n\n## Overview:\nThis script automates the backup process for a website, including its MySQL database. It creates a compressed tar archive containing virtual host configurations, website files, and a MySQL database dump.\n\n## Variables:\n- `today`: Holds the current date in \"YYYY-MM-DD\" format.\n- `destination_backup`: Specifies the destination folder for backups, assumed to be named \"backup\".\n- `vhost_path`: Indicates the path to Apache virtual host configuration files.\n- `source $1`: Sources a file specified as a command-line argument, likely containing specific configurations or variables.\n\n## Database Export:\n```bash\nmysqldump -u $db_login -p$db_pwd $db_name \u003e dbbackupfile\n```\n\nExports the MySQL database specified by $db_login, $db_pwd, and $db_name to a file named \"dbbackupfile\".\nCreate Archive:\n\n```bash\n\ntar -czf $backup_file $vhost $website_files dbbackupfile\n```\n\nCreates a compressed tar archive named by $backup_file. Includes virtual host configurations, website files, and the exported database file.\nClean Database Export:\n\n```bash\n\nrm dbbackupfile\n```\nRemoves the temporary database backup file.\n\nNote: The comment at the end, # for back up in windows, appears incomplete and may be a note about backup compatibility with Windows.\n\nPlease ensure variable names are used with the correct syntax in the tar command (e.g., $backup_file, $vhost, $website_files), and update mysqldump to use the correct syntax for the password (-p$db_pwd).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismail-mouyahada%2Fscript-backup-bash-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fismail-mouyahada%2Fscript-backup-bash-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismail-mouyahada%2Fscript-backup-bash-windows/lists"}