Home > Storage and Backup > Back to Java Programming for Rsync

Back to Java Programming for Rsync

Now that I’m mostly done my work reviewing another office’s project, I can return to my work in deploying our new backup solution based on Rsync. I still have some work to do on the project review but now I’m waiting for documentation, so I have some time to work on my rsync stuff.

The new backup system will replace most tape in our organization by using disk-to-disk replication. I’ve talked about this before so see my article on Novell Cool Solutions or my previous posts about this. The backup system works like this:

A server that needs to be backed up will run a program to retrieve instructions for backing itself up from a centralized server. It will then execute those instructions to perform the backup. It will then email the results of the backup to the network administrator. Pretty simple. I’m doing this with java code as the managing code, and rsync as the replicator. The java program called ae_bu is started by cron, and uses rsync to download it’s instructions from the centralized server. It then executes the instructions line by line (which are a bunch of rsync commands) and keeps track of the success or failure of each command. Then it emails these results to the administrator. The reason that I’m using java instead of shell scripting or something like that is because on NetWare, you can’t make a script wait for an rsync command, so three rsync commands end up executing concurrently, which hogs the cpu. In addition it seemed like it would be a hassle to send email from a NetWare script so we just use javamail. It works pretty good.

Today I got the code finished on the java piece and we’re starting to deploy it for real.

About these ads
Categories: Storage and Backup
  1. Will
    2007-04-11 at 07:21

    Hi,
    I know this posting is old but I was wondering if you are still using RSYNC for a bckup solution. Also, I was wondering if you share your java code out to people, as I would certainly like to look at it.

    Regard,

    Will

  2. 2007-04-11 at 09:43

    Will:

    We still use rsync for backup pretty much exclusively. We’ve given up trying to deploy dynamic backup jobs centrally and have just switched to genericized backup scripts running on the backup server where the backups are stored.

  3. Mike
    2008-07-18 at 10:59

    Is there a way to get a copy of your java code for using rsync.

  4. 2008-07-18 at 11:36

    Mike:

    We stopped using this a long time ago, because we could never get the java pieces to work reliably. We are still using rsync for the moment, but we just run jobs centrally from our backup target server on Solaris.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: