faq
search
add article
cool-stuff
how-to
main
tips
parent
|
Tar problems with jpgs
by Tom Haddon on Thursday October 23, @05:38AM
|
Hi,
Does anyone know how to help me out with a rather bizarre problem? I have a cron job that's tar-ing and gzipping a directory (for a website), and it runs fine if I run it from the command line as root, but if I run it from cron (as root - in the /etc/cron.daily/ folder), it consistently fails on certain jpgs. The error message when unzipping and untar-ing the file to check for errors is "unexpected end of file" or something similar.
Here's the command:
tar -zcvpf /var/backup/site.tgz --directory /var/www/html .
Any help appreciated!!
Thanks, Tom
|
| Add Reply |
Important Stuff:
Note: Fields with bold titles are required.
Please try to keep posts on topic.
Try to reply to other people comments instead of starting new threads,
Read other people's messages before posting your own to
avoid simply duplicating what has already been said.
Use a clear subject that describes what your
message is about.
Please do not post offtopic, inflammatory, inappropriate, illegal,
or offensive comments. Repeat offenders will be sanctioned.
|