simba/backup

19 lines
378 B
Plaintext
Raw Normal View History

#!/usr/bin/perl -T
use warnings;
use strict;
use Simba::CA;
2007-11-15 21:15:56 +01:00
use POSIX qw(strftime);
$ENV{PATH} = "/usr/bin";
2007-11-15 21:15:56 +01:00
my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime());
open(my $log, '>>', '/var/log/simba/ca.log.' . $now);
2007-06-18 03:00:29 +02:00
$log->autoflush(1);
my $ca = Simba::CA->new({
dbi_file => $ENV{SIMBA_DB_CONN} || "$ENV{HOME}/.dbi/simba",
fh_log => $log,
});
$ca->run();