hi i'am usin Ubuntu server 14.04 I want to backup all data in /mnt/backups/(pictures music etc.) i use:
tar -cvpzf backup.tar.gz /mnt/backups/
and i want recover into /home/john/recover/
i use:
tar –xvpzf backup.tar.gz –C /home/john/recover/
but then I recover in /home/john/recover
it looks like:
/home/john/recover/mnt/backups/(and all my data,pictures music etc.)
Is there a way to make /home/john/recover/(and all my data,pictures music etc.)
or I do something wrong or its just what tar
does? Thanks.
P.S. sorry for any spelling mistakes :))