#!/bin/bash # create backups prior to making password changes datetime=`date +%d.%m.%Y.%H.%M` tar cvzf /usr/local/groundwork/tmp/password-backup-file-$datetime.tar.gz /usr/local/groundwork/config/ /usr/local/groundwork/foundation/container/webapps/jboss/portal-ds.xml /usr/local/groundwork/tools/gwdiags.pl /usr/local/groundwork/common/bin/gwdiags.pl /usr/local/groundwork/core/reports/etc/gwir.cfg /usr/local/groundwork/gwreports/PerformanceReports/ /usr/local/groundwork/cacti/htdocs/include/config.php /usr/local/groundwork/common/etc/check_cacti.conf /usr/local/groundwork/nedi/nedi.conf