Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Mount/Unmount (https://www.shirt-pocket.com/forums/showthread.php?t=337)

ptaylor 05-05-2005 09:03 PM

Mount/Unmount
 
Lots of background info first... Sorry about that, but I'm hoping that I can explain why I'm doing things this way to potentially help the future of the product and to also give others good ideas about backing up.

I've finally gotten around to trying to automate my backup routine.

Now, I am coming from the Windows world. Due to a worm that hit me about a year or more ago that fortunately only messed up my OS partitions, not my data partitions, I've taken to not having general access wide open for my network connections... (Among other things - Like running a Linux box as a NAS to push all my backups to).. Anyhow, I've been using the concept of connecting to my backup drive, backing up to it, then disconnecting. If a worm, virus, or hacker hits a machine, there wouldn't be a mapped drive hanging out that it has full access to. Yes, a hacker could probably locate the scripts, but it would take a bit of intelligent searching for that...

Now that I'm switching to the Mac platform, I'm taking the good habits that I've previously learned even though viruses and worms aren't as rampant.. Perhaps they are overkill, but I'd rather do a bit more for security than I need to rather than be sorry later...

Anyhow, I've followed the instructions in another post on how to mount and unmount drives in applescripts...

I have three scripts:

Weekly Full Backup
Daily Full Backup
Daily Incremental Backup

The Weekly Full Backup is a "delete destination and copy all files" type of backup to a partition (so it can be bootable).. I want this scheduled for once per week, like Sunday nights.

The Daily Full Backup is a "delete destination and copy all files" type of backup to a sparse image. I want this backup to run Monday nights.

The Daily Incremental Backup is a "smart backup" to the sparse image mentioned in the "Daily Full" script. This script should run Tuesday - Saturday...

Using this method, I should always have two backups... One from Sunday night on a physical partition that I can boot to in an emergency, and one that was taken the previous night (on the sparse image)... (I'll probably also script something to copy off the sparse disk image once a month or so to a network attached drive)...

Anyhow, this brings me to my situation... When I run the Weekly Full Backup script, it attempts to mount my "daily" sparse image, but since neither it nor the drive housing it are mounted, it can't. That hangs the backup script... I don't have this issue when running either of the "Daily" scripts, because the sparse image is mounted by the script prior to SuperDuper starting up.

So, how can I stop SuperDuper from trying to mount the "daily" sparse disk image on it's own?

Paul

dnanian 05-05-2005 09:25 PM

To resolve this, open SuperDuper! without loading any settings, set the source and destination to volumes that will always be there, and quit.

That should take care of it!

ptaylor 05-05-2005 10:11 PM

With all my volumes disconnected, I only have my original volume (grayed out) and disk image to select from....

I attached to a network share and pointed SuperDuper to a disk image there (that didn't exist yet), then exited, and it appears to like that... It now starts without complaining.

Thanks!
Paul

dnanian 05-05-2005 11:27 PM

Yep, an image file will work fine too...

sjk 05-07-2005 01:05 AM

Hi Paul,

I have a few comments since my backup strategy is similar to yours ...

Quote:

Originally Posted by ptaylor
The Weekly Full Backup is a "delete destination and copy all files" type of backup to a partition (so it can be bootable).. I want this scheduled for once per week, like Sunday nights

The Daily Full Backup is a "delete destination and copy all files" type of backup to a sparse image. I want this backup to run Monday nights.

If the destination volume is empty or its data isn't radically different than on the source volume you might want to use Smart Update. When the destination is empty Smart Update is equivalent to Erase then Copy.

When someone recently asked, Dave responded that it wasn't necessary to use Erase then Copy after using Smart Update for awhile. That convinced me there's no reason to keep my original Saved Session scripts that use Erase then Copy. If necessary, I'll use Disk Utility to erase a "radically different" destination volume in addition to creating new sparse images.

Quote:

The Daily Incremental Backup is a "smart backup" to the sparse image mentioned in the "Daily Full" script. This script should run Tuesday - Saturday...
If my logic above makes sense, you could use a single Smart Update script for both your Daily Full and Daily Incremental backups.

However(!), doing it that way will gradually consume more space on the sparse image and the physical volume it's on. To avoid that, I occasionally run "hdiutil compact /path/to/name.sparseimage" from an after copy customization shell script to shrink the sparse image. So, there's certainly an advantage to your method of doing a weekly Erase then Copy on the sparse image to shrink it.

Either way requires multiple scripts. Since I'm more comfortable with shell than AppleScript I've chosen that approach for now. I'm wondering if Automator might be helpful in the future although I won't be upgrading to Tiger for at least another month.

Quote:

Using this method, I should always have two backups... One from Sunday night on a physical partition that I can boot to in an emergency, and one that was taken the previous night (on the sparse image)... (I'll probably also script something to copy off the sparse disk image once a month or so to a network attached drive)...
What I do is use Smart Update to occasionally update "remote backup" sparse images from the "master backup" images since it's faster (on my 100Mbps home LAN) than copying the full images.

Quote:

Anyhow, this brings me to my situation... When I run the Weekly Full Backup script, it attempts to mount my "daily" sparse image, but since neither it nor the drive housing it are mounted, it can't. That hangs the backup script... I don't have this issue when running either of the "Daily" scripts, because the sparse image is mounted by the script prior to SuperDuper starting up.

So, how can I stop SuperDuper from trying to mount the "daily" sparse disk image on it's own?
Glad to finally hear from someone else who's encountered that mount snafu. :) I've used Dave's suggested resolution, too.

That brings up the topic of suggested improvements for volume and image management, which gets more involved than I have time and space for here. And Shirt Pocket is plenty busy right now with Tiger compatibility issues and the v2 release so I don't want to distract them from those priorities. :)


All times are GMT -4. The time now is 08:54 AM.

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