||Learning the Mac OS X Terminal, Part 5|
|Subject:||Sudo and ditto|
Works very well, thank you.
I like to back up my ~folder, once in a while. And if I run a script with ditto from my crontab it chokes:
copying file ./Library/Preferences/com.apple.NetInfoManager.plist ... com.apple.NetInfoManager.plist: Permission denied
/Volumes/FirewireDrive2/HomeBackUp/tjj/Library/Preferences/com.apple.NetInfoManager.plist: Permission denied
If the script is run from terminal: sudo backup.sh, no problem. And ditto IS much faster copying 1.7 Gb than RsyncX sync'ing 1.4 Gb. But how do I get around the sudo issue with ditto?
Sudo and ditto
2002-07-13 10:04:24 markedwards2 [View]