Wednesday, September 12, 2007

It's been awhile.

Here's how to use Clearcase's cleartool with rsync:

First, on the machine where clearcase is (ie, where you're pulling files FROM), create a script like so: (call it /bin/setviewrun)


#!/bin/bash
view=$1
shift
while [[ -n "$1" && "$1" != "rsync" ]]; do
shift
done
/usr/atria/bin/cleartool setview -exec "$*" $view


Now, on the machine where you want to copy the files to use this rsync command:


rsync -navz --rsh "ssh id@box /bin/setviewrun viewname" id@box:/path/to/file.txt .


Take the -n away once it actually works!

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?