Show the last PresSTORE Backup2Go’s backup date in Absolute Manage

Archiware PresSTORE and Absolute Manage are two great softwares that help us to manage and back up our users. PresSTORE integrates some CLI commands that can be used with Absolute Manage to retrieve some information directly in the asset management window (Computers).

With this CLI tool it’s easy to use Absolute Manage to show the last backup date or the template used by a workstation. A complete guide for the CLI is available on the Archiware support’s site.

The below script can be used to retrieve the last backup date as a Custom Information Field in Absolute Manage :

#!/bin/bash

##EXIT THE SCRIPT IF BACKUP2GO IS NOT INSTALLED
if [ ! -d /usr/local/aw ]; then
	echo "Backup2Go is not installed on this workstation."
	exit

else

	##GETTING THE BACKUP SERVER ID
	SERVER=`/usr/local/aw/bin/nsdchat -c Server names`

	##GETTING THE LATEST BACKUP DATE
	LASTEND_EPOCHETIME=`/usr/local/aw/bin/nsdchat -c Server $SERVER lastend`

	##TRANSLATING THE EPOCHE TIME TO STANDARD OUTPUT
	LASTEND=`/bin/date -r $LASTEND_EPOCHETIME "+%d.%m.%y - %Hh%M"`

	##SHOW RESULT
	/bin/echo "Latest backup : $LASTEND"

fi
exit

Leave a Reply

Your email address will not be published. Required fields are marked *

*