< Back

Compare-ODUExportMostRecentWithOlder

Sat Jan 18, 2020 5:31 pm

NAME Compare-ODUExportMostRecentWithOlder



SYNOPSIS

Opens diff viewer to compare most recent export with older export





SYNTAX

Compare-ODUExportMostRecentWithOlder [[-Hours] <Int32>] [<CommonParameters>]





DESCRIPTION

Opens diff viewer to compare most recent export with older export.

If no value is passed for parameter Hours it compare the most recent export with the export

that occured just before it. If an Hours value is passed it finds the first export that many

hours older than the most recent export and compares with that.

The folder names that are parsed/returned must match YYYYMMDD-HHMMSS name format or, more

specifically: ^\\d{8}-\\d{6}$

If you copy & rename a folder it won't get returned unless it matches that format.





PARAMETERS

-Hours <Int32>

Minimum number of hours older the export should be compared to latest export



Required? false

Position? 1

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Compare-ODUExportMostRecentWithOlder



<opens the 2 most recent exports in your diff viewer>









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Compare-ODUExportMostRecentWithOlder 24



<opens the most recent export along with the first export older that is more than 24 hours

older than the most recent export in your diff viewer>











RELATED LINKS

https://github.com/DTW-DanWard/OctopusDeployUtilities