pixney / backup-module
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:streams-addon
Requires
- ifsnop/mysqldump-php: ^2.6
- league/flysystem-aws-s3-v3: ^1.0
README
This module is heavily under construction.
It currently enables you to create backups of the database as well file backups of laravel helper paths. The backups are then uploaded to your digital ocean spaces (s3) for storage.
Installation
Composer
Run the following composer command
composer require pixney/backup-module
php artisan addon:install pixney.module.backup
.env
S3_KEY=""
S3_SECRET=""
S3_CLIENT=""
S3_ENDPOINT=""
S3_REGION=""
Then within the admin you add your backup job with a cron schedule. See Cronjob Guru for reference
Add a cronjob :
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Add a cronjob using runcloud
Within vendor binary, choose write your own within command
the add your command as above. Example: /bin/bash && cd /home/runcloud/webapps/pixney && php artisan schedule:run >> /dev/null 2>&1