view release on metacpan or search on metacpan
lib/Dackup.pm view on Meta::CPAN
$self->cache($cache);
$self->source->dackup($self);
$self->destination->dackup($self);
}
sub backup {
my $self = shift;
my $source = $self->source;
my $destination = $self->destination;
my $delete = $self->delete;
my $dry_run = $self->dry_run;
lib/Dackup.pm view on Meta::CPAN
__END__
=head1 NAME
Dackup - Flexible file backup
=head1 SYNOPSIS
use Dackup;
my $source = Dackup::Target::Filesystem->new(
prefix => '/home/acme/important/' );
my $destination = Dackup::Target::Filesystem->new(
prefix => '/home/acme/backup/' );
my $dackup = Dackup->new(
source => $source,
destination => $destination,
delete => 0,
dry_run => 0,
verbose => 1,
throttle => '1Mbps',
);
$dackup->backup;
=head1 DESCRIPTION
This module is an attempt at a flexible file backup. It supports
copying to and from filesystems, remote hosts via SSH, Amazon's
Simple Storage Service and Mosso's CloudFiles. At all stages,
it checks the MD5 hash of the source and destination files.
It uses an MD5 cache to speed up operations, which it stores by
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
# Module::Build generated files.
^blib/
^Build$
^_build/
# Temporary and backup files.
~$
\.tmp$
\.old$
\.bak$
\.swp$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
# Avoid Module::Build generated and utility files.
\bBuild$
\b_build/
# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
view all matches for this distribution
view release on metacpan or search on metacpan
share/debugtoolbar/js/prettify/lang-sql.js view on Meta::CPAN
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r Â\xa0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|as|asc|autho...
null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dancer/SearchApp.pm view on Meta::CPAN
Configure Elasticsearch to only respond to localhost or to queries from
within a trusted network, like your home network.
Note that leaking a copy of the Elasticsearch search index is almost as
bad as leaking a copy of the original data. This is especially true if you
look at backups.
=head1 REPOSITORY
The public repository of this module is
L<https://github.com/Corion/dancer-searchapp>.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Dancer2/Plugin/EditFile.pm view on Meta::CPAN
A sample HTML page with Bootstrap and jQuery is included in the samples directory. Use it as an example to build your own page.
plugins:
EditFile:
backup: 1
backup_dir: '/var/application/backups'
display:
method: 'get'
route: '/editfile/display'
template: 'editfile.tt'
layout: 'nomenu.tt'
lib/Dancer2/Plugin/EditFile.pm view on Meta::CPAN
file: '/var/application/config3.xml'
save: 0
=over 4
B<Note> the user B<must> have read/write access to the file being edited and the backup directory.
=back
=over 4
=item I<backup>
Specify if original file should be saved. Default = 0 (do not save)
=item I<backup_dir>
Directory where original files should be saved. Default = /tmp
=item I<display>
lib/Dancer2/Plugin/EditFile.pm view on Meta::CPAN
=cut
#
# Accessors
#
has backup => (
is => 'ro',
isa => Bool,
from_config => 1,
default => sub { 0 }
);
has backup_dir => (
is => 'ro',
isa => Str,
from_config => 1,
default => sub { '/tmp' }
);
lib/Dancer2/Plugin/EditFile.pm view on Meta::CPAN
my $files = $plugin->files;
if ( ! $files->{$file_id}->{file} ) {
$status_message = "The specified id: $file_id is not properly defined in your configuration.";
} elsif ( $plugin->{backup} && $plugin->{backup_dir} ) {
if ( -d $plugin->{backup_dir} ) {
my $basename = basename( $files->{$file_id}->{file} );
my $backup_filename = $plugin->{backup_dir}
. '/'
. $basename
. '.'
. time;
eval {
copy($basename, $backup_filename);
};
if ( $@ ) {
$status_message = "Could not save backup";
}
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
\bpm_to_blib$
\bMakeMaker-\d
^MYMETA\.
\.gz
# Avoid temp and backup files:
~$
\.old$
^#.*#$
^\.#
\.bak$
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Darcs/Notify.pm view on Meta::CPAN
->notify;
=head1 DESCRIPTION
B<Darcs::Notify> compares the list of patches in a darcs repository
against a saved backup copy (stored in the file
F<_darcs/third-party/darcs-notify/old-inventory>) and does "something
cool and useful" when it detects added or removed patches. I'm being
cagey about exactly what is done because Darcs::Notify lets you pass
in arbitrary notification methods so that you can customize it to you
liking. L<Darcs::Notify::Email> is the quintessential notifier that
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
# Avoid Module::Build generated and utility files.
\bBuild$
\b_build/
# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
view all matches for this distribution
view release on metacpan or search on metacpan
share/assets/dash_core_components/async~highlight.js view on Meta::CPAN
(window.webpackJsonpdash_core_components=window.webpackJsonpdash_core_components||[]).push([[3],{669:function(e,n,a){var t,s,r;s=function(e){var n,a=[],t=Object.keys,s={},r={},i=!0,l=/^(no-?highlight|plain|text)$/i,o=/\blang(?:uage)?-([\w-]+)\b/i,c=/...
//# sourceMappingURL=async~highlight.js.map
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Data/AnyXfer/Elastic/Snapshot.pm view on Meta::CPAN
Data::AnyXfer::Elastic::Cluster - Elasticsearch Cluster
=head1 DESCRIPTION
This module provides methods to manage snapshot/restore, or backups. It can
create, get and delete configured backup repositories, and create, get, delete
and restore snapshots of your cluster or indices.
Wraps methods from Search::Elasticsearch::Client::Direct::Snapshot for
purposes.
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
\bbuild.com$
# and Module::Build::Tiny generated files
\b_build_params$
# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
CPAN.SKIP
t/000_standard__*
Debian_CPANTS.txt
nytprof.out
# Temp, old, emacs, vim, backup files.
~$
.old$
.swp$
.tar$
.tar\.gz$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
\bbuild.com$
# and Module::Build::Tiny generated files
\b_build_params$
# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
\bBuild.bat$
\bBuild.COM$
\bBUILD.COM$
\bbuild.com$
# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
CPAN.SKIP
t/000_standard__*
Debian_CPANTS.txt
nytprof.out
# Temp, old, emacs, vim, backup files.
~$
.old$
.swp$
.tar$
.tar\.gz$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
CPAN.SKIP
t/000_standard__*
Debian_CPANTS.txt
nytprof.out
# Temp, old, emacs, vim, backup files.
~$
\.old$
\.swp$
\.tar$
\.tar\.gz$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
CPAN.SKIP
t/000_standard__*
Debian_CPANTS.txt
nytprof.out
# Temp, old, emacs, vim, backup files.
~$
.old$
.swp$
.tar$
.tar\.gz$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
CPAN.SKIP
t/000_standard__*
Debian_CPANTS.txt
nytprof.out
# Temp, old, emacs, vim, backup files.
~$
.old$
.swp$
.tar$
.tar\.gz$
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
CPAN.SKIP
t/000_standard__*
Debian_CPANTS.txt
nytprof.out
# Temp, old, emacs, vim, backup files.
~$
.old$
.swp$
.tar$
.tar\.gz$
view all matches for this distribution