problem with .tgz files

Soldato
Joined
15 Sep 2003
Posts
9,454
Hi,

Im trying to backup a system via the following command:

tar -cvpzf /backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

Which works well, except. When I try and open the backup.tgz file on either linux or windows it won't work. I think this might be due to me ftp'ing it to a windows server and corrupting it?

If anyone could shed any light on this and or provide a better more secure way of getting this file from my server i'd appreciate it.

Cheers,

Jon
 
That didn't work. :(. Typing in "bin" set it to binary. When I try and open the file on a Windows 2003 box it doesn't contain anything. The file size is 172mb though.

Any other suggestions.
 
try putting an --exclude=/dev - you don't want it anyway, not entirely sure if that would be stopping it working.
 
I've managed to download the backupfile onto my Ubuntu box and its worked fine. Must be a quirk with winrar that isn't allowing it to open on windows..

Cheers for your help chaps. :).
 
Back
Top Bottom