App-Glacier
view release on metacpan or search on metacpan
lib/App/Glacier/Command/Get.pm view on Meta::CPAN
package App::Glacier::Command::Get;
use strict;
use warnings;
use threads;
use threads::shared;
use App::Glacier::Core;
use App::Glacier::Job::FileRetrieval;
use App::Glacier::DateTime;
use App::Glacier::Progress;
use parent qw(App::Glacier::Command);
use Carp;
use Scalar::Util;
use File::Copy;
=head1 NAME
glacier get - download file from a vault
=head1 SYNOPSIS
B<glacier put>
[B<-fikqt>]
[B<--force>]
[B<--interactive>]
[B<-j> I<NJOBS>]
[B<--jobs=>I<NJOBS>]
[B<--no-clobber>]
[B<--keep>]
[B<--quiet>]
[B<--test>]
I<VAULT>
I<FILE>
[I<LOCALNAME>]
=head1 DESCRIPTION
Downloads I<FILE> from the I<VAULT>. The local file name for the file is
supplied by the I<LOCALNAME>. If this argument is absent, the local name
is formed from I<FILE> with the eventual version number part removed.
See B<glacier>(1), section B<On file versioning>, for the
information about file versioning scheme.
=head1 OPTION
=over 4
=item B<-f>, B<--force>
Silently overwrites existing local file.
=item B<-i>, B<--interactive>
If the local file already exists, asks for permission before overwriting
it.
=item B<-j>, B<--jobs=>I<N>
Sets the number of concurrent download jobs for multiple-part downloads.
The default is configured by the B<transfer.download.jobs> configuration
statement. If absent, the B<transfer.jobs> statement is used. The
default value is 16.
=item B<-k>, B<--keep>, B<--no-clobber>
Never overwrite existing files.
=item B<-q>, B<--quiet>
( run in 1.302 second using v1.01-cache-2.11-cpan-ceb78f64989 )