All,
I have a simple java code to let me copy paste file from one folder to another for a weekly backup. This code works fine however my problem is i want to compress the file while saving. the size of the (.nsf lotus notes database file) is almost 1.5 gb and I plan to run a weekly backup. I tried using the zip package available in java but it does not compress the size is still the same.
Can anyone please give me some usefull tip or guidance on how to compress a .nsf lotus notes database file using java?
public static void main(String[] args)
{
System.out.println("Copy Paste Process Started ");
DateFormat dateFormat = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");
Date date = new Date();
String reportDate = dateFormat.format(date);
System.out.println(reportDate);
File f1= new File("C:\\notes\\data\\people\\xyz.nsf");
File f2= new File("E:\\Backup\\xyz"+reportDate+".nsf");
FileUtils.copyFile(f1, f2);
System.out.println("Done");
}