I can not unzip *.gz file
Posted: Thu Dec 17, 2015 1:14 pm
I succeed in creating a backup file of the domoticz.db
But nothing happens
What am I doing wrong?
I also was wondering what is the difference between *.gz (this is used for backing up database) and *.tar.gz (this is used to backup the whole folder)
see https://www.domoticz.com/wiki/Daily_bac ... ternal_hdd
Code: Select all
[## BACKUP DATABASE
BACKUPFILE="domoticz_$TIMESTAMP.db.gz" #
### Create backup and ZIP it
/usr/bin/curl -s http://$DOMO_IP:$DOMO_PORT/backupdatabase.php > /tmp/$BACKUPFILE
gzip -9 /tmp/$BACKUPFILE/code]
And I moved the backup to my HDD on other PI with SCP.
Now I want to unzip that file again with
[code]
tar -xvf domoticz_20151217095013.db.gz
What am I doing wrong?
I also was wondering what is the difference between *.gz (this is used for backing up database) and *.tar.gz (this is used to backup the whole folder)
see https://www.domoticz.com/wiki/Daily_bac ... ternal_hdd