-
-
Notifications
You must be signed in to change notification settings - Fork 768
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made it possible to run the backup, cleanup and monitor commands in i…
…solated mode
- Loading branch information
1 parent
9cd0d13
commit 5f3c540
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Isolated mode | ||
weight: 5 | ||
--- | ||
|
||
If your application's scheduler is running on multiple servers, you may limit the backup job to only execute on a single server. | ||
|
||
To indicate that the task should run on only one server, you may use the `--isolated` option when running the task on your server: | ||
|
||
```php | ||
php artisan backup:run --isolated | ||
``` | ||
|
||
The first server to obtain the task will secure an atomic lock on the job to prevent other servers from running the same task at the same time. | ||
|
||
> To utilize this feature, your application must be using the `database`, `memcached`, `dynamodb`, or `redis` cache driver as your application's default cache driver. In addition, all servers must be communicating with the same central cache server. | ||
The following commands support the `--isolated` option: | ||
|
||
- `backup:run` | ||
- `backup:clean` | ||
- `backup:monitor` |