We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i couldn't find any tickets/comments regarding it, so i thought i would add what i've found to help others.
so far no changes needed except for the cmnd scheduling.
--only-db
--option="only-db"
--option="--only-db"
make sure to use ->withoutOverlapping(); or the db dump cmnd will overlap each other.
->withoutOverlapping();
if u r going to schedule both central & tenant backup, do it on a different interval or the db dump cmnd will overlap each other.
$schedule->exec('php artisan backup:run && php artisan tenants:run backup:run' . $this->getTenants())->everyMinute()->runInBackground()->withoutOverlapping();
as for $this->getTenants() check Schedule Run support archtechx/tenancy#502 (comment)
$this->getTenants()
The text was updated successfully, but these errors were encountered:
thanx to spatie/laravel-backup#167 (comment) it seems that when running the cmnd through tenant, the db is not correctly set, so to fix that
Events\TenancyInitialized::class
foreach (config('backup.backup.source.databases') as $connection) { config(["database.connections.$connection.database" => $event->tenancy->tenant->db_name]); }
php artisan tenants:run backup:run
Sorry, something went wrong.
No branches or pull requests
i couldn't find any tickets/comments regarding it, so i thought i would add what i've found to help others.
so far no changes needed except for the cmnd scheduling.
--only-db
wont work "this is mostly related to how tenancy handle cmnds with args like that" ex.--option="only-db"
--only-db
--option="--only-db"
make sure to use
->withoutOverlapping();
or the db dump cmnd will overlap each other.if u r going to schedule both central & tenant backup, do it on a different interval or the db dump cmnd will overlap each other.
as for
$this->getTenants()
check Schedule Run support archtechx/tenancy#502 (comment)The text was updated successfully, but these errors were encountered: