Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 9, 2010, 05:36 PM   #1
paulstanely45
macrumors newbie
 
Join Date: Apr 2010
mount_afp, crontab, and php problem

Hello,

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:betacam@backup.midcan.com/backup $mount_path", $mount_output);

I have a full script posted at the following link if anyone feels it would help

http://forums.devnetwork.net/viewtopic.php?f=6&t=115128
paulstanely45 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 02:48 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC