// only do once!
if(wasInitialized)
return;
if(request == null)
throw new BackupException("backup-res.InternalError", "null BackupRequest reference");
// add a timestamp
request.timestamp = System.currentTimeMillis();
if(request.description == null || request.description.length() <= 0)
request.description = "" + request.timestamp;
// validate domains dir
if(request.domainsDir == null || !FileUtils.safeIsDirectory(request.domainsDir))
throw new BackupException("backup-res.NoDomainsDir", request.domainsDir);
// validate the domain-name
if(!StringUtils.ok(request.domainName))
throw new BackupException("backup-res.InternalError", "No domain-name was specified");
request.domainDir = new File(request.domainsDir, request.domainName);
LoggerHelper.setLevel(request);