File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Automating Backups and Deployments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Automating Backups and Deployments" Watch "Automating Backups and Deployments" New topic

Automating Backups and Deployments

killer whales

Joined: Apr 28, 2011
Posts: 1
Hi guys, not sure if this is the correct place to submit this question; but here it goes:

So I have my application working on Tomcat/MySql and there are about a ton of files with similar number of extension to them as well. One the biggest problems I have to face is when I have to deploy a patch consisting of at least 20-30 files and about 5-10 directories and sub-directories - the process of making backup patches and deployment just became tedious.

Here is what I do at the moment:

1. Lets my app folder name is "marina" which contains about 2000-3000 files and about 200-250 directories and sub-directories.
2. Lets say I have a patch to deploy that has the following structure:
3. Now here is what I do, I first create a replica folder structure of the above patch with no files in it and since there is automated way of doing this I have to create the folders one by one manually.
4. Then I copy paste above four files manually from the live app so that I have a backup of all the original files. This too is done one by one since there is not way to automate this process.
5. Then I deploy the patch at the client

Steps 3 and 4 are the ones that seem very small but imagine having to do this if you have about 30 files in like 15 directories and sub-directories. And most of the times I have to deploy the same patch at multiple clients which just becomes a painstaking job to do.

Is there any way at all through I can automate the process of:

1. Checking files and folder structure in my patch.
2. Create a backup patch containing the exact same file and folder structure as of the patch in step 1 - only that it will have files from the live application.

Help in solving this for me would be greatly appreciated!
I agree. Here's the link:
subject: Automating Backups and Deployments