Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to setup automatic backup on schedule from my mac to amazone s3. I'm using for this purpose launchd + s3cmd.

s3cmd is working fine in terminal.app. But launchd can't run s3cmd. I see in system.log errors like:

Mar  5 12:48:17 kinds-MacBook com.kind.s3cmd[13060]: ERROR: Can't find a config file. Please use --config option.
Mar  5 12:48:17 kinds-MacBook com.apple.launchd[1] (com.kind.s3cmd[13060]): Exited with exit code: 1

Looks like launchd has different from Bash environment.

How can I use s3cmd with launchd?

share|improve this question

migrated from stackoverflow.com Mar 8 '11 at 11:34

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

up vote 0 down vote accepted

RTFM as usual:

s3sync needs to know several interesting values to work right. It looks for them in the following environment variables -or- a s3config.yml file. In the yml case, the names need to be lowercase (see example file). Furthermore, the yml is searched for in the following locations, in order:

$S3CONF/s3config.yml
$HOME/.s3conf/s3config.yml
/etc/s3conf/s3config.yml

http://s3.amazonaws.com/ServEdge_pub/s3sync/README.txt

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.