Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-01-2008, 02:05 PM
Gorisan Gorisan is offline
Registered User
 
Join Date: Jul 2008
Location: Beautiful British Columbia
Posts: 6
Shell Scripts -Questions

Ok, well Its not that I haven't tried to find the answers but here we go.

What extension is used for Shell scripts, as in the ones SuperDuper can use?
(in that "other" OS, I used to write simple .bat files)

How does one test scripts from the "file" format.

Is there a 101, for dummies, Introduction for complete Windoze morons for said scripts? ;o)

Applescript is completely different right!?!

I am trying to setup something similar to:

http://www.leancrew.com/all-this/200...duper-scripts/



Gorisan
Reply With Quote
  #2  
Old 08-01-2008, 06:15 PM
jtk jtk is offline
Registered User
 
Join Date: Jul 2008
Posts: 12
Quote:
Originally Posted by Gorisan View Post
What extension is used for Shell scripts, as in the ones SuperDuper can use?
There is no specific extension for shell scripts, so none is required. However, ".sh" is pretty common and will be recognized.

Quote:
How does one test scripts from the "file" format.
Not quite sure what you mean by "scripts from the 'file' format," but if you're talking about shell scripts, open the Terminal app (located in Applications->Utilities), make sure the script you want to test is executable (use chmod u+x my-script-name), then execute it from the command line (./my-script-name, assuming it's in your current working directory).

If you're talking about the .dset files, then they're XML files, so they can't be executed directly. Perhaps others can help you determine better how to test them.

Quote:
Is there a 101, for dummies, Introduction for complete Windoze morons for said scripts? ;o)
Yes, many. Any Linux site will most likely have tutorials on shell scripting. Google is your friend. By default, current versions of Mac OS X use the Bourne-Again Shell (bash), so that would be a good place to start. An information-dense but less user-friendly source is the man page (type man bash or man sh in the Terminal app).

Quote:
Applescript is completely different right!?!
Yes, absolutely correct.

Quote:
I am trying to setup something similar to [...]
Hmm... May I ask why? Are you trying to set up unattended backups? If so, there is a way to tell the system not to unmount volumes when you log out.

Otherwise, the examples on the page you linked to are pretty straight-forward. You'll just need to copy the text (without the line numbers) of the final version into a file and change the "Backup" (in the awk command -- and be sure to note the two points at the end of that page) to reflect whatever you've named your target volume, then make it executable and test it. It might be a good idea, however, to log the errors instead of pitching them into /dev/null, at least until it's debugged.
__________________
jtk

Last edited by jtk; 08-01-2008 at 06:28 PM. Reason: Added search link
Reply With Quote
  #3  
Old 08-01-2008, 11:21 PM
Gorisan Gorisan is offline
Registered User
 
Join Date: Jul 2008
Location: Beautiful British Columbia
Posts: 6
Quote:
Originally Posted by jtk View Post
Hmm... May I ask why? Are you trying to set up unattended backups? If so, there is a way to tell the system not to unmount volumes when you log out.
Thank you for the information you have provided

Myself, I will not need to use such a script. However for my wifes machine I will be running such a setup as to be as automatic as possible. Sort of set it and forget it type thing. If I have the Firewire Drives mounted all the time then the units will power up and down at the will of the Energy Saving Utility,
Im hoping to bypass such cycles by having the Drive (partitions) unmounted.

Therefore only power up just before a backup occurs, then unmount (power down) after-words.

(Hoping this is in the realm of there are no dumb questions)

again thanks for information provided.
At this point I am still tinkering to get what I need/want in the way of a backup scheme. I must say I do like SuperDuper so far

Last edited by Gorisan; 08-02-2008 at 12:15 AM. Reason: spelling
Reply With Quote
  #4  
Old 08-02-2008, 08:15 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
One small thing to note: SuperDuper! does this completely automatically with scheduled backups. If the drive isn't mounted we mount it, copy and unmount...
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 08-03-2008, 12:07 AM
Gorisan Gorisan is offline
Registered User
 
Join Date: Jul 2008
Location: Beautiful British Columbia
Posts: 6
...weird I could have sworn I posted a reply already.

Anyhow Indeed SuperDuper does do that however I have tried again and I notice it does not seem to work for backing up in sparse image mode.

at least for me
Reply With Quote
  #6  
Old 08-03-2008, 12:59 AM
Gorisan Gorisan is offline
Registered User
 
Join Date: Jul 2008
Location: Beautiful British Columbia
Posts: 6
Ok, Figured it out.

You can run a backup, then create a disk image of said backup.
Running in a schedule mode, I can mount/unmount seamlessly.

Not exactly what I was trying to do in the first place, but its more than good enough.

Thank you all for your patience
I will now go enjoy SuperDuper.

Great Software!
Gorisan
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a shell script to log out? ben428 General 5 06-14-2008 08:35 AM
Scripts and error detection edoates General 1 06-10-2006 06:10 PM
Best Itunes Library Backup Settings, Scripts? greenjeens General 5 05-21-2006 03:28 PM
Run Shell Scripts cucciasv General 1 02-26-2006 09:31 PM
Questions about "exclude system cache/temporary files" Copy Scripts Darkside General 1 05-12-2005 09:48 AM


All times are GMT -4. The time now is 04:45 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.