[freeside-commits] freeside/FS/FS/Cron backup.pm,1.3,1.4
Mark Wells
mark at wavetail.420.am
Thu Oct 28 15:57:10 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv19319/Cron
Modified Files:
backup.pm
Log Message:
don't try to backup if backup_scp is empty
Index: backup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/backup.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- backup.pm 23 Oct 2010 21:34:50 -0000 1.3
+++ backup.pm 28 Oct 2010 22:57:08 -0000 1.4
@@ -12,8 +12,8 @@
sub backup_scp {
my $conf = new FS::Conf;
my $dest = $conf->config('dump-scpdest');
- $dest .= time2str('/%Y%m%d%H%M%S',time);
if ( $dest ) {
+ $dest .= time2str('/%Y%m%d%H%M%S',time);
datasrc =~ /dbname=([\w\.]+)$/ or die "unparsable datasrc ". datasrc;
my $database = $1;
eval "use Net::SCP qw(scp);";
More information about the freeside-commits
mailing list