JBackup
Requirements to run the JBackup.class:

JavaVM: JDK 1.1 or MSVM ( jview ), this is on your machine if you have IE 4.0 or above installed

Download JBackup here. Updated on Apr 6, 1999.

Regards

Navneet

Please send in the any requests, suggestions or information that you feel will be useful to everybody.

History:

April 6, 1999

Pune, India

JBackup used to store the drive information in the zip file. This used to cause some problems while extracting. It has been fixed now. UNC naming convention is also handled.


January 5, 1999

Pune, India

A very Happy New Year to all of you.

A bug fix to JBackup in the New Year. The -date tag used to generate incorrect dates if the TimeZone was anything other than PST. This has been fixed now.


December 31, 1998

Pune, India

I added two features on demand from users:

  1. -day command similar to the -date command. It generates the day of the week, eg. Monday
  2. if the target disk does not have enough disk space, the temporary file is not deleted

December 23, 1998

Pune, India

Yesterday I was trying to take a daily backup and found how frustrating it can be if you have to specify the names of the files that you want to backup and the name of the target file. Most of the times, the target file name is some form of the date on which the backup is taken.

To ease this, I wrote a small Java application to process the list of files specified there and make a ZIP file out of it. But this, as all of know, even the pkzip utility allows. The next task was to automate the name generation. This I achieved by giving a "-date" command. An obvious enhancement of this was to allow a prefix for the file date. But this would have meant complications in the command line processing which I wanted to avoid so I allowed this feature when used in the config file.

This config file ( jbackup.cfg ) is opened if there are no command line parameters specified. Actually I must be calling it the default script file, but then this was the name I started with so I keep it hat way. So now you can have a command like "-date navneet" or better still "-date c:\backup\naveeet\" in the config file. This allows the target file to be generated on a different drive too. Also, I have taken care that if the target file already exists, then the existing files must be copied if they are not being added in the specified list of files. By adding the config file, what I also achieved is that I can simply run the class and don't need to supply parameters. This helps a lot.

There are a few things missing, but overall the utility is now very usable. The most important feature which is missing is the facility to process wild cards. Currently only filenames can be processed and not the wildcards. This can easily be overcome by using a simple batch file ( as given in the attached archive ). My ultimate aim is to remove the need for this batch file, so I'll keep adding features as and when possible.

If you want to see a brief help, try removing the config file since it will not display the help if the config file is present

Any feedback will be highly appreciated.

Requirements to run the JBackup.class:

JavaVM: JDK 1.1 or MSVM ( jview ), this is on your machine if you have IE 4.0 or above installed

Download JBackup here.

Regards

Navneet

Please send in the any requests, suggestions or information that you feel will be useful to everybody.

Go back to Home page

Last updated : Apr 6, 1999. ©1998,1999

 

1