Commits

Anonymous committed de6642f

Easier to read in lists

Comments (0)

Files changed (1)

ec2-snapshot-filesystem

 	foreach (expandMd($dev) as $d) $volumes[] = deviceToVolumeId($d);
 	 
 	$region = region();
-	$descPrefix = "Snapshot $mp on " . instanceId() . " at ";
-	$descFull = $descPrefix . date('r');
+
+	$descPrefix = "Snapshot $mp on " . instanceId();
+	$descFull = $descPrefix . " (" . gethostname() . ") at " . date('r');
+
 	passthru("ec2-consistent-snapshot --region $region --description '$descFull' " . implode(" ", array_merge($argv, $volumes)));
 	
 	foreach ($volumes as $vol) purge($vol, $descPrefix);