Skip to content

Commit a5835f6

Browse files
committed
Small improvements
1 parent d860906 commit a5835f6

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Laravel SingleStore Backup is a package that makes it easy to make backups of yo
88
- [Supported Drivers](#supported-drivers)
99
- [Configuring](#configuring)
1010
- [Basic Usage](#basic-usage)
11-
- [Setting Timeout Parameter](#setting-timeout-parameter)
12-
- [Setting With Date Parameter](#setting-with-date-parameter)
13-
- [Setting With Time Parameter](#setting-with-time-parameter)
14-
- [Init Backup](#init-backup-non-local-only)
15-
- [Differential Backup](#differential-backup-non-local-only)
11+
- [Setting Timeout Parameter](#setting-timeout-parameter)
12+
- [Setting With Date Parameter](#setting-with-date-parameter)
13+
- [Setting With Time Parameter](#setting-with-time-parameter)
14+
- [Init Backup](#init-backup-non-local-only)
15+
- [Differential Backup](#differential-backup-non-local-only)
1616
- [Advanced Usage](#advanced-usage)
1717
- [Publishing Config File](#publishing-config-file)
1818
- [License](#license)
@@ -108,6 +108,9 @@ If you're making an incremental backup and want to do a `DIFFERENTIAL` backup, y
108108
php artisan singlestore:backup --differential
109109
```
110110

111+
## Prune Backups
112+
113+
111114
## Advanced Usage
112115

113116
Sometimes the simple backup command with configs may not be flexible as you want. Instead, you can use the `SinglestoreBackup` class:

src/Console/SinglestoreBackupCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function handle()
3434
throw new InvalidArgumentException('You can\'t use --init and --differential options at the same time.');
3535
}
3636

37+
if (($this->option('with-date') || $this->option('with-time')) && $this->option('init') || $this->option('differential')) {
38+
throw new InvalidArgumentException('You can\'t use --init or --differential options with --with-date or --with-time options.');
39+
}
40+
3741
/*
3842
* Start backup command
3943
*/

0 commit comments

Comments
 (0)