{"id":23896687,"url":"https://github.com/ismail-mouyahada/master-bash-backup-script","last_synced_at":"2025-06-12T12:09:11.074Z","repository":{"id":214259712,"uuid":"420741895","full_name":"Ismail-Mouyahada/Master-Bash-Backup-Script","owner":"Ismail-Mouyahada","description":"Exciting Release! Introducing version 1.0 of our LAMP Backup Script, a simple yet powerful tool to automate and secure your LAMP stack data.","archived":false,"fork":false,"pushed_at":"2023-12-26T23:13:36.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T07:34:06.045Z","etag":null,"topics":["backup","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","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":"LICENSE","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-24T16:53:20.000Z","updated_at":"2023-12-26T23:16:10.000Z","dependencies_parsed_at":"2023-12-27T01:36:25.447Z","dependency_job_id":null,"html_url":"https://github.com/Ismail-Mouyahada/Master-Bash-Backup-Script","commit_stats":null,"previous_names":["ismail-mouyahada/master-bash-backup-script"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Ismail-Mouyahada/Master-Bash-Backup-Script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FMaster-Bash-Backup-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FMaster-Bash-Backup-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FMaster-Bash-Backup-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FMaster-Bash-Backup-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ismail-Mouyahada","download_url":"https://codeload.github.com/Ismail-Mouyahada/Master-Bash-Backup-Script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ismail-Mouyahada%2FMaster-Bash-Backup-Script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259462559,"owners_count":22861512,"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":["backup","script"],"created_at":"2025-01-04T16:54:04.495Z","updated_at":"2025-06-12T12:09:11.052Z","avatar_url":"https://github.com/Ismail-Mouyahada.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LAMP Backup Script\n\nHey there! 👋 This is a simple Bash script that I use to automatically back up my LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack every 5 hours. It's a handy tool to ensure I don't lose any important website data.\n\n## How to Use\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/yourusername/lamp-backup-script.git\ncd lamp-backup-script\n```\n\n2. Configure the Script\n\nOpen the lamp_backup.sh script in your favorite text editor. You'll find some variables at the beginning that you can customize:\n\n```bash\n\n# Variables\nbackup_dir=\"/path/to/backup\"\nvhost_path=\"/etc/apache2/sites-available\"\nwebsite_files=\"/var/www/html\"\ndb_user=\"your_mysql_user\"\ndb_password=\"your_mysql_password\"\ndb_name=\"your_database_name\"\n```\nUpdate these variables with your specific LAMP setup details.\n3. Make the Script Executable\n\n```bash\n\nchmod +x lamp_backup.sh\n```\n4. Schedule the Script\n\nOpen your crontab file:\n\n```bash\n\ncrontab -e\n```\nAdd the following line to run the script every 5 hours:\n\n```bash\n\n0 */5 * * * /path/to/lamp_backup.sh\n```\nSave and exit the crontab file.\nImportant Notes\n\n    Make sure you have the necessary privileges to perform backups.\n    Confirm that MySQL is configured to allow password-less execution of mysqldump.\n    Adjust paths and variables in the script according to your specific LAMP setup.\n\nFeedback and Contributions\n\nI'd love to hear your feedback or suggestions! Feel free to open issues or pull requests on GitHub.\n\nHappy coding and secure backups! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismail-mouyahada%2Fmaster-bash-backup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fismail-mouyahada%2Fmaster-bash-backup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismail-mouyahada%2Fmaster-bash-backup-script/lists"}