Changes

stoney conductor: VM Backup

99 bytes added, 14:15, 22 October 2013
/* Backup a single machine */
object machine = args[0];
if ( snapshot( machine ): if merge( machine ): if retain( machine ): printf("Successfully backed up machine %s\n", machine); else: printf("Error while retaining machine %s: %s\n", machine, error); else: printf("Error while merging machine %s: %s\n", machine, error);else: printf("Error while snapshotting machine %s: %s\n", machine, error);{
if ( merge( machine ) )
{
 
if ( retain( machine ) )
{
printf("Successfully backed up machine %s\n", machine);
 
} else
{
printf("Error while retaining machine %s: %s\n", machine, error);
}
 
} else
{
printf("Error while merging machine %s: %s\n", machine, error);
}
 
} else
{
printf("Error while snapshotting machine %s: %s\n", machine, error);
}
</source>
486
edits