Help - Search - Members - Calendar
Full Version: PSA Backup Utilities
The Planet Forums > Control Panels > Plesk
jaredweb
I installed the plesk backup utilities for PSA5 and used nighthawk's how-to on making this work.

http://forum.rackshack.net/showthread.php?...&threadid=19421

I made the script that he says to, and put it in the cron.daily folder, named zzbackuip.sh as he said. It is not backing anything up on a daily basis though.

I am completely new to cron jobs and this is the first thing I have tried to do with it. Does anyone know why this is not functioning?

Do I need to do something else to activate the cron job?

this is what happens if I execute zzbackup.sh manually from root.

------------------------------------------------------------------------------------
[root@slush cron.daily]# ./zzbackup.sh

===============================================================================

Some errors can be occured during restoration hosting directories or mailnames
because --tar-ignore-failed_read and --nostop keys was used at the same time.
/home/httpd/vhosts/.skel/. ... done
/home/httpd/vhosts/default/. ... done
/usr/local/psa/admin/htdocs//skins/Standard_1/. ... done
/usr/local/psa/admin/htdocs//skins/Standard_2/. ... done
database test ... done
database geosters ... done
database geoster ... done
database main ... done
database billing ... done
/home/httpd/vhosts/celebrateholliston.com/. ... done
/home/httpd/vhosts/lcauction.com/. ... done
/home/httpd/vhosts/lilfolkfarm.com/. ... done
/home/httpd/vhosts/ambianceandspirits.com/. ... done
/home/httpd/vhosts/mangin.org/. ... done
/home/httpd/vhosts/mstrobert.com/. ... done
/home/httpd/vhosts/vwgames.net/. ... done
/home/httpd/vhosts/vwgames.com/. ... done
/home/httpd/vhosts/jaredweb.com/. ... done
/home/httpd/vhosts/musicofdismal.com/. ... done
/home/httpd/vhosts/waveplatesinc.com/. ... done
/home/httpd/vhosts/slushpro.com/. ... done
/home/httpd/vhosts/geosters.com/. ... done
/home/httpd/vhosts/barefootsailingclub.com/. ... done
/home/httpd/vhosts/johniscool.com/. ... done
/home/httpd/vhosts/college4me.com/. ... done
/home/httpd/vhosts/paycompanion.com/. ... done
/home/httpd/vhosts/sorcre.geosters.com/. ... done
/home/httpd/vhosts/logoperfect.com/. ... done
/home/httpd/vhosts/greenchicken.co.uk/. ... done
/var/qmail/mailnames/lilfolkfarm.com/info/. ... done
/var/qmail/mailnames/mstrobert.com/robert/. ... done
/var/qmail/mailnames/mangin.org/janice/. ... done
/var/qmail/mailnames/mangin.org/robert/. ... done
/var/qmail/mailnames/lcauction.com/sales/. ... done
/var/qmail/mailnames/vwgames.net/robert/. ... done
/var/qmail/mailnames/vwgames.com/robert/. ... done
/var/qmail/mailnames/celebrateholliston.com/contact/. ... done
/var/qmail/mailnames/musicofdismal.com/band/. ... done
/var/qmail/mailnames/waveplatesinc.com/contact/. ... done
/var/qmail/mailnames/jaredweb.com/sales/. ... done
/var/qmail/mailnames/vwgames.com/test/. ... done
/var/qmail/mailnames/barefootsailingclub.com/rory/. ... done
/var/qmail/mailnames/college4me.com/rory/. ... done
/var/qmail/mailnames/geosters.com/geosters/. ... done
/var/qmail/mailnames/johniscool.com/john/. ... done
/var/qmail/mailnames/sorcre.geosters.com/sorcre/. ... done
/var/qmail/mailnames/sorcre.geosters.com/SychosisDragon/. ... done
/var/qmail/mailnames/sorcre.geosters.com/ben/. ... done
/var/qmail/mailnames/logoperfect.com/sales/. ... done
/var/qmail/mailnames/geosters.com/billing/. ... done
/var/qmail/mailnames/ambianceandspirits.com/martina/. ... done
/var/qmail/mailnames/ambianceandspirits.com/robert/. ... done

===============================================================================

Some errors can be occured during restoration hosting directories or mailnames
because --tar-ignore-failed_read and --nostop keys was used at the same time.

===============================================================================

[root@slush cron.daily]#
--------------------------------------------------------------------------------

Maybe that can help... thanks
Griffith
what chmod has the file got? Not sure what it has to be, but I think it might work with 600, can't remeber, but I had the same problem.. I could execute it manually, but cron never started it.. Then I had to change the chmod of it icon_smile.gif
FishnFoo
What does your crontab entry look like?


as root Type

# crontab -l

Then paste that info here.
jaredweb
[root@slush root]# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.psa installed on Wed Apr 2 16:14:09 2003)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
14 5 * * * /usr/local/psa/bin/mysqldump.sh >/dev/nu
ll 2>&1
7 4 * * * /usr/local/psa/admin/sbin/statistics >/d
ev/null 2>&1
[root@slush root]#
FishnFoo
Oh sorry icon_smile.gif haha I misread your post I thought you had it in roots cron. But instead you have it in cron.daily

The permissions need to be 700 to execute not 600...

rwx --- ---

if that doesn't work then I would just put it under roots normal cron.

If you know VI then do a

crontab -e

then add the following line:

00 03 * * * /patch/to/script/zzbackup.sh

The 00 03 and *** stand for: (so edit the times as needed)
minute - hour - day - month - weekday
00 03 * * *

So that says to run at 03:00 everyday of the month.


If you don't know VI then use your favorite editor and edit this file /var/spool/cron/root with the above information to schedule ur script.


If you do it the last way you will have to push the new cron file by doing a
/etc/init.d/crond restart

when you do it the crontab -e way it automatically pushes the new cron file.
jaredweb
Thanks alot, I will try that later today. I appreciate the help!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.