X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-daily;h=1162e7911a641fca9f4cf0b1df9db1224061b9d9;hb=3a90a880ccda8e46850dca101b74657d8a6e69f2;hp=f04faea493313b20598f034143ed5ffaa3a4d4ed;hpb=acc311a412cd8660572eb6de6712a1e0b2768ec1;p=freeside.git diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily index f04faea49..1162e7911 100755 --- a/FS/bin/freeside-daily +++ b/FS/bin/freeside-daily @@ -74,10 +74,9 @@ export_batch_submit(%opt); use FS::Cron::agent_email qw(agent_email); agent_email(%opt); -my $deldir = "$FS::UID::cache_dir/cache.$FS::UID::datasrc/"; -unlink <${deldir}.invoice*>; -unlink <${deldir}.letter*>; -unlink <${deldir}.CGItemp*>; +#clears out cacti imports & deletes select database cache files +use FS::Cron::cleanup qw( cleanup cleanup_before_backup ); +cleanup_before_backup(); #backup should be last #you can skip this just by not having the config @@ -85,7 +84,6 @@ use FS::Cron::backup qw(backup); backup(); #except we'd rather not start cleanup jobs until the backup is done -use FS::Cron::cleanup qw(cleanup); cleanup(); $log->info('finish');