Home Forums OS X Server and Client Discussion Questions and Answers Running the mailback script

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #359708
    Kayners
    Participant

    Hello,

    I’ve been trying to get the mailback script to go, no joy. Here’s what I’ve been getting:

    Xserve:/usr/sbin honus$ ls -l mail*
    -rwxr–r– 1 root wheel 4218 20 Oct 15:42 mailback

    Xserve:/usr/sbin honus$ sudo mailback -r /Volumes/Xmirror/mailbackup
    Password:
    sudo: unable to exec /usr/sbin/mailback: No such file or directory

    The instructions said to make the script executable, so I chmodded an x in there for root, thinking that combined with sudo would be enough.

    In need of a clue,

    Steve.

    #359709
    bustthis
    Participant

    chmod 755 /usr/sbin/mailback

    #359711
    Kayners
    Participant

    Tried that, now it’s -rwxr-xr-x, and I’m getting the same error.

    Steve.

    #359713
    Kayners
    Participant

    Got it running. I opened the files with pico and they looked like garbage. Seems I saved them in a non-UNIX format. Resaved as UNIX with BBEdit Lite and now they run.

    However, the mailback script doesn’t dump anything into it’s folders, though (ODBack appears to work OK). Is that because there are no files to backup? I have a few user test emails that should get saved, but there’s no sign of them. Are the user mailboxes stored elsewhere? I’m running IMAP.

    Steve.

    #359714
    Kayners
    Participant

    Nevermind… I was running in doofus-mode.

    Did -r for restore instead of -b for backup.

    Old dog, new tricks.

    Steve.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed