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)
Now, on the machine where you want to copy the files to use this rsync command:
Take the -n away once it actually works!
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!