|Apr 9, 2010, 05:36 PM||#1|
mount_afp, crontab, and php problem
I have been having one hell of a time figuring out this one bug. I have been trying to write a script that backups my mysql databases. It worked for the longest time, but now I can an error like this, and I can't seem to figure out why I am getting it.
2010-04-09 17:28:33.812 mount_afp[7458:613] CFPreferences: user home directory at /Library/WebServerBackup/99 is unavailable. User domains will be volatile.
mount_afp: AFPMountURL returned error 1, errno is 1
I am using the crontab to run the script, and that is when it fails. If I run it manually, it works just fine.
The app essentially mounts the drive, copies mysql data to the drive, and then unmounts it.
Can anyone shed some light on what is happening. I am using a php call to mount_afp:
exec("sudo mount_afp -f afp://backup:email@example.com/backup $mount_path", $mount_output);
I have a full script posted at the following link if anyone feels it would help
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|[php] - php problems os x mountain lion 10.8.2||cakas6933||OS X 10.8 Mountain Lion||4||Jun 10, 2014 08:08 AM|
|Where is the crontab located in ML?||DominikHoffmann||OS X 10.8 Mountain Lion||6||Oct 31, 2013 04:52 AM|
|Apple Server Scripts/Crontab email notifications from "System Administrator"||Nvizn||Mac OS X Server, Xserve, and Networking||1||Jun 18, 2013 12:25 PM|
|PHP - stream_context_create||larswik||Mac Programming||13||Jun 28, 2012 10:00 PM|
All times are GMT -5. The time now is 03:02 PM.