PDA

View Full Version : Cron Tar Error


turscak
10-12-2005, 09:30 PM
I'm just trying to do a daily backup of my site. I've checked the tar man and google. It's so wierd...

My Cron script within the siteground advanced applet is:

cd /home/fturscak/public_html;tar -cvf - * | tar -C /home/fturscak/backup/`date +\%Y\%m\%d`.gz -xv
(all on one line, of course)

I get the following error:


tar: /home/fturscak/backup/20051012.gz: Cannot chdir: No such file or directory What am I doing wrong? I feel so stupid!

Frank

RedKarl
08-19-2006, 11:23 PM
turscak did you ever get any help in sorting this out? I'd like to know what the correct syntax is.

turscak
08-19-2006, 11:38 PM
turscak did you ever get any help in sorting this out? I'd like to know what the correct syntax is.

Yes, there was nothing wrong with my syntax. One of the managers had arbitrarily removed permissions (he/she said there was too much abuse). Eventually I convinced them to lift the block. But now I'm no longer with siteground. I might come back someday, if they (managers) ever get their act together.

Regards,
Frank

RedKarl
08-19-2006, 11:41 PM
Ahhh ok, so that means that we can't actually even write automatic backup scripts for ourselves it seems - we need to pay them $30 to do it for us. ?

turscak
08-20-2006, 12:23 PM
Ahhh ok, so that means that we can't actually even write automatic backup scripts for ourselves it seems - we need to pay them $30 to do it for us. ?

No...If you can't successfully run the script, submit a work order. Otherwise, the powers that be will assume everything is OK. Don't let them rairoad you!