Compare commits

...

2 Commits

Author SHA1 Message Date
2a0357b36a Makefile 2024-08-10 13:29:58 +02:00
ece216e6f4 README.md 2024-08-10 13:27:13 +02:00
2 changed files with 59 additions and 0 deletions

12
Makefile Executable file
View File

@ -0,0 +1,12 @@
##################################
# Install dd-gz (for Unix/Linux) #
##################################
PREFIX=/usr
install:
cp -rf dd-gz $(PREFIX)/bin/
chmod +x $(PREFIX)/bin/dd-gz
uninstall:
rm -rf $(PREFIX)/bin/dd-gz

47
README.md Normal file
View File

@ -0,0 +1,47 @@
`dd-gz` - dd compressing on the fly
## Create backup:
```
dd-gz backup /dev/<device> /path/<output>.gz
```
Example:
```
dd-gz backup /dev/sdc /home/backup/sdc-backup.gz
```
## Restore backup:
```
dd-gz restore /path/<input>.gz /dev/<device>
```
Example:
```
dd-gz restore /home/backup/sdc-backup.gz /dev/sdc
```
## How to install:
```
git clone https://git.q3aql.dev/q3aql/dd-gz
cd dd-gz
sudo make install
```
## How to uninstall:
```
git clone https://git.q3aql.dev/q3aql/dd-gz
cd dd-gz
sudo make uninstall
```
## Dependencies
* sh
* dd
* gzip