{"id":16294164,"url":"https://github.com/sarfraznawaz2005/backupmanager","last_synced_at":"2025-03-16T13:31:35.307Z","repository":{"id":32985758,"uuid":"148793821","full_name":"sarfraznawaz2005/backupmanager","owner":"sarfraznawaz2005","description":"Simple laravel package to backup/restore files and database.","archived":false,"fork":false,"pushed_at":"2023-03-03T05:51:29.000Z","size":72,"stargazers_count":27,"open_issues_count":3,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-12-19T15:02:08.942Z","etag":null,"topics":["backup","database","laravel","package","php","restore-database"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sarfraznawaz2005.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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":"2018-09-14T13:39:24.000Z","updated_at":"2024-05-01T16:13:04.062Z","dependencies_parsed_at":"2024-05-01T16:13:01.959Z","dependency_job_id":"4f8301c9-5177-47c0-be74-206b122232c6","html_url":"https://github.com/sarfraznawaz2005/backupmanager","commit_stats":{"total_commits":40,"total_committers":4,"mean_commits":10.0,"dds":0.525,"last_synced_commit":"100d0551500204b4e503eac661544cbcd9927875"},"previous_names":[],"tags_count":12,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fbackupmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fbackupmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fbackupmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fbackupmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarfraznawaz2005","download_url":"https://codeload.github.com/sarfraznawaz2005/backupmanager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243817177,"owners_count":20352507,"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","database","laravel","package","php","restore-database"],"created_at":"2024-10-10T20:14:23.201Z","updated_at":"2025-03-16T13:31:34.958Z","avatar_url":"https://github.com/sarfraznawaz2005.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n# Laravel BackupManager\n\nSimple laravel package to backup/restore files and database.\n\n## Screenshot\n\n![Main Window](https://github.com/sarfraznawaz2005/backupmanager/blob/master/screen.gif?raw=true)\n\n## Requirements\n\n - PHP \u003e= 5.6\n - \u003e= Laravel 5\n - `mysql` (to restore database)\n - `mysqldump` (to backup database)\n - `tar` (to backup/restore files)\n - `zcat` (to extract database archive)\n \n Please make sure above binaries are added to `PATH` environment variable or you can specify full path to them in config file.\n\n## Installation\n\nVia Composer\n\n``` bash\n$ composer require sarfraznawaz2005/backupmanager\n```\n\nFor Laravel \u003c 5.5:\n\nAdd Service Provider to `config/app.php` in `providers` section:\n```php\nSarfraznawaz2005\\BackupManager\\ServiceProvider::class,\n```\n\n(Optional) Add Facade to `config/app.php` in `aliases` section:\n```php\n'BackupManager' =\u003e Sarfraznawaz2005\\BackupManager\\Facades\\BackupManager::class,\n```\n\n---\n\nPublish package's files by running below command:\n\n```bash\n$ php artisan vendor:publish --provider=\"Sarfraznawaz2005\\BackupManager\\ServiceProvider\"\n```\nIt should publish `config/backupmanager.php.php` config file and migration file.\n\nRun `php artisan migrate` to create backup verifier (`verifybackup`)) table.\n\n---\n\nFinally setup options in `config/backupmanager.php` file and open the backup manager at url you have specified in `route` option eg `http//yourapp.com/backupmanager`, you should now see interface of BackupManager.\n\nSee `config/backupmanager.php` file for more information about backup settings.\n\n## Setting Up Automatic Backups\n\nTo setup automatic backups, place following in `app/Console/Kernel.php` file:\n\n```php\n$schedule-\u003ecommand('backupmanager:create')-\u003edaily();\n```\n\nAlthough packages provides GUI interface to manage backups, following commands are also available:\n\n```bash\n  backupmanager:create                  Creates backup of files and/or database.\n  backupmanager:create --only=\"db\"      Creates backup of database only.\n  backupmanager:create --only=\"files\"   Creates backup of files only.\n  backupmanager:list                    Shows list of backups taken.\n  backupmanager:restore                 Restores a backup already taken.\n```\n\n## Saving Backups to Other Disks\n\nBy default this package saves backups to `local` disk but you can use built-in feature of laravel filesystem to save backups to other disks too. Let's say you want to upload to different server for which you have ftp credentials, you need to update those ftp credentials into laravel's `config/filesystems.php` file under `ftp` disk setting. Once you have done that, in backup manager config file (`config/backupmanager.php`) specify your disk to be `ftp` instead of `local` eg:\n\n    // define disk options\n    'disk' =\u003e 'ftp',\n\ninstead of \n\n     'disk' =\u003e 'local',\n\nNow backup files will be saved on your ftp location instead of locally.\n\n## How Restore is verified\n\nEven though there is no 100% way to verify restores, yet for **files** we create and verify restore feature by putting some contents into `backup-verify` file before and after restore. Similarly, we verify **database** restore by putting some contents into `verifybackup` table before and after restore. In both cases, contents of that file and database table are different at the time of backup and restore.\n\n## Disclaimer\n\nThis package was created for our needs and works for us however no guarantee is provided in terms of its functionality especially restore feature which can not be 100% verified because of the way restore feature works. So use this package at your own risk.\n\n## Credits\n\n- [Sarfraz Ahmed][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nPlease see the [license file](license.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/sarfraznawaz2005/backupmanager.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/sarfraznawaz2005/backupmanager.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/sarfraznawaz2005/backupmanager\n[link-downloads]: https://packagist.org/packages/sarfraznawaz2005/backupmanager\n[link-author]: https://github.com/sarfraznawaz2005\n[link-contributors]: https://github.com/sarfraznawaz2005/backupmanager/graphs/contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fbackupmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarfraznawaz2005%2Fbackupmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fbackupmanager/lists"}