Forum Moderators: phranque

Message Too Old, No Replies

Restoring from Tar File - images lost

         

matthewamzn

2:23 pm on Aug 12, 2006 (gmt 0)

10+ Year Member



I'm trying to restore a website. I made a compressed tar file from the old location, but when I try to restore it on another server, the images don't work. Am I using the right tar commands?

tar -cvzf
tar -xvzf

lammert

5:31 pm on Aug 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



-cvzf and -xvzf are the normal options for compressed archiving and restoring.

It sounds to me like a carriage-return carriage-return/linefeed problem which is not visible in your text files, but destroyed the contents of image files.

Are the source and destination different types of computers, i.e. Windows and Linux? Did you transfer the files first with FTP to a Windows computer and then back to a Linux computer? Was with one of those transfers ASCII mode in FTP selected?

You can first uncompress the tar file with gunzip, and then extract the resulting tar file with tar xvf.