IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2008, 11:14:55 AM (18 years ago)
Author:
jhoblitt
Message:

be consistent about referring to volumes by "volume name"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/bin/neb-cp

    r13075 r16179  
    11#!/usr/bin/env perl
    22
    3 # Copyright (C) 2007  Joshua Hoblitt
     3# Copyright (C) 2007-2008  Joshua Hoblitt
    44#
    5 # $Id: neb-cp,v 1.3 2007-04-28 01:24:26 jhoblitt Exp $
     5# $Id: neb-cp,v 1.4 2008-01-22 21:14:55 jhoblitt Exp $
    66
    77use strict;
     
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($node, $server);
     18my ($volume, $server);
    1919
    2020$server = $ENV{'NEB_SERVER'} unless $server;
    2121
    2222GetOptions(
    23     'node|n=s'      => \$node,
     23    'volume|v=s'    => \$volume,
    2424    'server|s=s'    => \$server,
    2525) || pod2usage( 2 );
     
    4141
    4242my $status;
    43 if ($node) {
    44     $status = $neb->copy( $src, $dst, $node);
     43if ($volume) {
     44    $status = $neb->copy( $src, $dst, $volume);
    4545} else {
    4646    $status = $neb->copy( $src, $dst);
     
    5959=head1 SYNOPSIS
    6060
    61     neb-cp [--server <URL>] [--node <dst volume>] <src key> <dst key>
     61    neb-cp [--server <URL>] [--volume <dst volume name>] <src key> <dst key>
    6262
    6363=head1 DESCRIPTION
    6464
    65 This program list Nebulous keys matched by C<<pattern>>.  Call it with no
    66 arguments is equivalanet to searching with the pattern C<.*>.  Where
    67 C<<pattern>> is a POSIX 1003.2 compatable regular repression.
     65Copy a Nebulous storage key
    6866
    6967=head1 OPTIONS
     
    7674
    7775Optional if the appropriate environment variable is set.
     76
     77=item * -volume|-v <volume name>
     78
     79The volume to place the new key's first storage instance on.
     80
     81Optional.
    7882
    7983=back
     
    107111=head1 COPYRIGHT
    108112
    109 Copyright (C) 2007  Joshua Hoblitt.  All rights reserved.
     113Copyright (C) 2007-2008  Joshua Hoblitt.  All rights reserved.
    110114
    111115This program is free software; you can redistribute it and/or modify it under
Note: See TracChangeset for help on using the changeset viewer.