complete documentation
This commit is contained in:
parent
7d4599abf8
commit
f61ed651d9
22
README.md
22
README.md
@ -16,10 +16,30 @@ composer require d3/varbackup
|
|||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
|
### Show options list
|
||||||
|
|
||||||
|
```
|
||||||
|
./vendor/bin/varbackup -h
|
||||||
|
```
|
||||||
|
|
||||||
|
### Create backups
|
||||||
|
|
||||||
Create a cronjob or execute the following script manually:
|
Create a cronjob or execute the following script manually:
|
||||||
|
|
||||||
```
|
```
|
||||||
./vendor/bin/varbackup
|
./vendor/bin/varbackup [-s]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Restore last backup
|
||||||
|
|
||||||
|
```
|
||||||
|
tar -xvf backup/var/latest.tar
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```
|
||||||
|
tar -xzvf backup/var/var.tar.2025-01-01.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
## Customizing
|
## Customizing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user