add Makefile, update README
This commit is contained in:
parent
423f8ce989
commit
38b79e6929
14
Makefile
Normal file
14
Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
MODE = 755
|
||||
SCRIPT = rlmariabackup
|
||||
|
||||
.PHONY: all install
|
||||
|
||||
all:
|
||||
@echo "Run 'make install' to install rlmariabackup"
|
||||
|
||||
install:
|
||||
install -d $(BINDIR)
|
||||
install -m $(MODE) $(SCRIPT) $(BINDIR)/
|
||||
@echo "rlmariabackup has been installed to $(BINDIR)"
|
22
README.md
22
README.md
@ -1,5 +1,25 @@
|
||||
# rlmariabackup
|
||||
|
||||
# License
|
||||
A shell script utility for managing MariaDB backups.
|
||||
|
||||
## Installation
|
||||
|
||||
You can install rlmariabackup using the provided Makefile:
|
||||
|
||||
```
|
||||
make install
|
||||
```
|
||||
|
||||
This will install the script to `/usr/local/bin`. If you want to install to a different location, you can specify the PREFIX:
|
||||
|
||||
```
|
||||
make install PREFIX=/opt
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Run `rlmariabackup help` to see available commands and options.
|
||||
|
||||
## License
|
||||
|
||||
BSD-2-Clause
|
Loading…
x
Reference in New Issue
Block a user