Cron Job using PLESK for backup - How to? | Old Forum | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
Cron Job using PLESK for backup - How to?
January 29, 2008
12:00 am
Avatar
rofe
Guest
Guests

Hi there,
Since exec() function support is disabled, I want to use the UNIX cron script to make backups. However I am only successful starting backups via browser but not via the script.

PLESK cron jobs need the script like:

/var/www/vhosts/domain.com/httpdocs/administrator/components/com_cloner/cloner.cron.php

This will result in some errors like this:

/var/www/vhosts/domain.com/httpdocs/administrator/components/com_cloner/cloner.cron.php: line 1: ?php
: No such file or directory
/var/www/vhosts/domain.com/httpdocs/administrator/components/com_cloner/cloner.cron.php: line 2: /**
: No such file or directory
...
...
...

This is probably because the config file is missing. But how can I do this?
Adding the file at the end won't solve the problem:

/var/www/vhosts/domain.com/httpdocs/administrator/components/com_cloner/cloner.cron.php?config=joodlecron.php

The error message generated is:
/bin/sh: /var/www/vhosts/domain.com/httpdocs/administrator/components/com_cloner/cloner.cron.php?config=joodlecron.php: No such file or directory

So how can I use ordinary UNIX cron commands to make scheduled backups?
Thank you and regards
Rolf

January 29, 2008
12:00 am
Avatar
admin
Guest
Guests

Hi there! The correct shell command to use for cron would be

"php /var/www/vhosts/domain.com/httpdocs/administrator/components/com_cloner/cloner.cron.php joodlecron.php"

Notice that there are more details explained in your JoomlaCloner backend ->left menu Cron link

Let me know if you have further issues! Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0