Skip to content
Advertisement

can’t extract tar.gz file

I used backup.sh :

#!/bin/bash

NOW=$(date +"%m-%d-%Y-%H-%M-%S")
cd /home/sebastien/save

tar -zcvf backup.$NOW.tar.gz /var/www/Symfony/

in /home/sebastien/save i have:

-rwxrwxrwx  1 root      root         45 nov.  10 15:50 backup.11-10-2015-15-50-01.tar.gz*

i’m trying to extract this file with :

tar -zxvf backup.11-10-2015-15-40-01.tar.gz -C /home/sebastien/tmp/

but Nothing is happening /home/sebastien/tmp is empty!

Advertisement

Answer

Try removing that other command which blocks the process.

Advertisement