knightmb Posted January 26, 2006 Report Share Posted January 26, 2006 Fairly simple question, I hope the tar gods can point out something easy. Back in the Mandrake 10.2 days, I used a simple script setup for a daily cron job to make a backup of my website folder. It has worked fine for years. I recently upgraded to Mandriva 2006 and everything works fine, except for my backup script. At first, I thought maybe the usage commands had changed, but even trying this from the console will produce random garbage on the screen and finally an error that tar had to exit. This is the whole script below, it no longer works in Mandriva 2006, so I was wondering if anyone else has encountered this? Is my usage of the tar command wrong? I checked my tar bins, they are the latest offered up by the Mandriva sites. Here's the entire script below, has the right permissions to execute, etc. I checked all the easy stuff that I could. #!/bin/sh # # Backup all websites tar cipz /var/www/html/ -f "/backup/Weekly Backups/var-www-html.gz" exit 0 [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
spinynorman Posted January 26, 2006 Report Share Posted January 26, 2006 Should that be -cipz? :unsure: Quote Link to comment Share on other sites More sharing options...
knightmb Posted January 26, 2006 Author Report Share Posted January 26, 2006 After looking over some other simple backup scripts that others have posted, I noticed they were putting the archive name first, then files that go into the archive. I tried this and it worked, so I guess I was doing it wrong from the beginning. Funny it worked in previous versions, but I guess it was just being nice to me, LOL. Thanks everyone for the help!! Quote Link to comment Share on other sites More sharing options...
jboy Posted January 26, 2006 Report Share Posted January 26, 2006 Somewhere I seem to recall reading that the tar parameter syntax has been tightened up for the version packaged with Mandriva 2006. The tar documentation is quite clear that the tar archive name parameter comes before the files that the tar is to be created from. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.