Jump to content

Tar bin not working in Mandriva 2006? [solved]


Recommended Posts

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?

:help:

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]

Link to comment
Share on other sites

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!!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...