diff --git a/backup b/backup index 51ae11c..5dba178 100755 --- a/backup +++ b/backup @@ -2,10 +2,12 @@ use warnings; use strict; use Simba::CA; +use POSIX qw(strftime); $ENV{PATH} = "/usr/bin"; -open(my $log, '>>', '/var/log/simba/ca.log'); +my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime()); +open(my $log, '>>', '/var/log/simba/ca.log.' . $now); $log->autoflush(1); my $ca = Simba::CA->new({