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)
-   -   Backing up multiple volumes (https://www.shirt-pocket.com/forums/showthread.php?t=6707)

SuperDoper! 09-18-2012 01:33 PM

Backing up multiple volumes
 
I use SuperDuper! to backup a Mac mini Server with 2 volumes (BOOT, DATA) to a single external firewire drive with corresponding volumes (BOOT-BACKUP, DATA-BACKUP).

Now to make things simple and easy for the customer I've setup SuperDuper! to run a scheduled backup of each volume whenever the external drive is plugged in and these backup volumes are mounted; I have it run a script that sends an email when the backup of volume 1 (BOOT) is started and another email when the backup of volume 2 (DATA) is completed (and have SuperDuper! eject the drive at the end) so they know when they can safely unplug the backup drive and take it to a safe place.

Here is the problem: SuperDuper! does not always run the backup of the BOOT volume before the backup of the DATA volume but sometimes the other way round, so my "Backup finished" email arrives first (in the middle of the backup process) followed by the "Backup started" email, and ofcourse the backup process still takes a while to finish and the customer cannot tell when it is safe to unplug the drive.

So my question: How can I make sure my two backups always run in the "right" order?

Thanks,
SuDo

dnanian 09-18-2012 01:40 PM

You can't control the order of scheduled "backup on mount" copies, since the order of mounting is undefined. Sorry.

SuperDoper! 09-18-2012 04:02 PM

Quote:

Originally Posted by dnanian (Post 31911)
You can't control the order of scheduled "backup on mount" copies, since the order of mounting is undefined. Sorry.

Thank you for the quick answer. Is there any other way to achieve the kind of behaviour I am looking for or do I have to compromise and send two separate emails?

SuDo

dnanian 09-18-2012 04:58 PM

I mean, there are many things you can do in your own post-copy scripts to determine whether you're running first or second, and send the email if you're second...

SuperDoper! 09-19-2012 08:30 AM

Quote:

Originally Posted by dnanian (Post 31913)
I mean, there are many things you can do in your own post-copy scripts to determine whether you're running first or second, and send the email if you're second...

Right, I didn't think about that, thanks for the hint. I believe I have figured out how to do this with a simple lockfile.

Thanks, again.


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

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