Re: mailsmith breaking superduper backups

12 views
Skip to first unread message

GeisWood

unread,
Nov 14, 2011, 11:10:50 PM11/14/11
to mailsmi...@googlegroups.com
Hello Bruce,

Speaking of mind-reading, I have this very same problem with
SuperDuper & Mailsmith but I do not know how to write a shell
script. I assume what I see is very close to the finished
product but.. I just don't know.

Will you please post your converted AppleScripts (or email them
to me) so that I can make similar scripts for SuperDuper to use
- using the appropriate username & password settings, of course.

Much obliged,
Sandy Wood

>From: blinde <bruce...@gmail.com>
>Date: Oct 03 09:03AM -0700
>Url: http://groups.google.com/group/mailsmith-talk/msg/866a676a35139845
>
>guys -
>
>thanks for the tips... my scripts now read:
>
>do shell script "sudo mdutil -a -i off" user name "it's me" password
>"wouldn't you like to know" with administrator privileges
>
>and
>
>do shell script "sudo mdutil -a -i on" user name "it's me" password
>"wouldn't you like to know" with administrator privileges
>

blinde

unread,
Nov 16, 2011, 12:34:32 AM11/16/11
to Mailsmith Talk
sandy -

i created two .sh files (in bbedit). the one called
'superduper_spotlight_off.sh' contains two lines:

#! /bin/sh
sudo mdutil -a -i off

there is another file called 'superduper_spotlight_on.sh', that
toggles spotlight back on.

i keep those files in a folder where i keep lots of other scripts. i
might have chmod'd them to 777... don't remember.

under 'options...->advanced' in the main superduper window, i've got
'run shell script before copy starts' checked... and set the file to
'superduper_spotlight_off.sh'.

i've got 'run shell script after copy completes' checked, as well...
with the file set to 'superduper_spotlight_on.sh'.

the applescripts didn't work for me... perhaps because it says 'shell
script' in the options window... doh!

good luck,
bruce

GeisWood

unread,
Nov 18, 2011, 7:17:05 PM11/18/11
to mailsmi...@googlegroups.com
Hi Bruce,

Thanks for the scripts! Everything worked as I'd hoped it would
- or so I think. I am not actually sure...

I made & installed the scripts and chmod'd them to 777 as a
hedge against username/pass issues (fingers crossed). When I ran
the scripts myself, as a test of the scripts, I was asked for a
password, which I expected since sudo requires that and I had (&
have) not provided for it in the script. But I did hope that
SuperDuper would not have that issue.

And it did not, as near as I can tell. It did backup yesterday
without my attention.

But it did not write anything related to running these scripts
into any of its log files (one each per scheduled copy and one
user-activated-backup one. Highlight a scheduled script in that
window & click the Show Log button. The user-activated one is
reached via the SD menu bar-->Window-->Show Log)

Would you look at your log file(s) and see if SD wrote anything
about running the scripts, and let me know if it noted these
actions? It writes down everything it does... generally.

Thanks so much.
Sandy

blinde

unread,
Nov 19, 2011, 1:47:02 AM11/19/11
to Mailsmith Talk
sandy -

check the log... you'll see where the scripts ran, and turned
superduper on/off... feel the power! 8-)

bruce

blinde

unread,
Nov 19, 2011, 1:51:49 AM11/19/11
to Mailsmith Talk
sorry - sent that last one before reading your post in full:

| 01:34:47 AM | Info | ...ACTION: Preserving Spotlight state on
lizard_1
| 01:34:47 AM | Info | ......COMMAND => Disabling Spotlight search
indexing on lizard_1
| 01:34:47 AM | Info | ...ACTION: Running shell script
superduper_spotlight_off.sh
| 01:34:47 AM | Info | ......COMMAND => Invoking Before Copy shell
script: /Users/blinde/Sites/__php/superduper_spotlight_off.sh
| 01:34:49 AM | Info | /Volumes/dan_1:
| 01:34:49 AM | Info | Indexing disabled.
| 01:34:49 AM | Info | /:
| 01:34:49 AM | Info | Indexing disabled.
| 01:34:49 AM | Info | /Volumes/_stuff:
| 01:34:49 AM | Info | Indexing disabled.
| 01:34:49 AM | Info | /Volumes/steely_1:
| 01:34:49 AM | Info | Indexing disabled.
| 01:34:49 AM | Info | /Volumes/lizard_1:
| 01:34:49 AM | Info | Indexing disabled.


click in your log, select all, and then copy and paste into bbedit or
some other program where you can search and/or see more of what's
going on.

b


On Nov 18, 4:17 pm, GeisWood <geisw...@gmail.com> wrote:

GeisWood

unread,
Nov 20, 2011, 3:06:13 AM11/20/11
to mailsmi...@googlegroups.com
On 11/20/11 at 11:58 PM, mailsmi...@googlegroups.com wrote:

>click in your log, select all, and then copy and paste into bbedit or
>some other program where you can search and/or see more of what's
>going on.
>
>b


Strangely, while I did not see any entires in the log for the
first backup I tried, I did see them the second time!

| 10:38:28 PM | Info | ......COMMAND => Disabling Spotlight
search indexing on GDrive-bobSnowClone

| 10:52:09 PM | Info | Indexing and searching disabled.
| 10:52:09 PM | Info | Indexing enabled on GDrive-bobSnowClone

>check the log... you'll see where the scripts ran, and turned
>superduper on/off... feel the power! 8-)

Huzzah! I Feel the Power!

Thanks for your help, Bruce.

Reply all
Reply to author
Forward
0 new messages