Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Mozilla::Backup::Plugin::FileCopy
A file copy plugin for Mozilla::Backup

Mozilla::Backup::Plugin::FileCopy - A file copy plugin for Mozilla::Backup


NAME

Mozilla::Backup::Plugin::FileCopy - A file copy plugin for Mozilla::Backup


SYNOPSIS


  use Mozilla::Backup;

  my $moz = Mozilla::Backup->new(

    plugin => 'Mozilla::Backup::Plugin::FileCopy'

  );


DESCRIPTION

This is a plugin for Mozilla::Backup which copies profiles to another directory.

new

  $plugin = Mozilla::Backup::Plugin::FileCopy->new( %options );

The following %options are supported:

log
The the Log::Dispatch manpage objetc used by the Mozilla::Backup manpage. This is required.

debug
The debug flag from the Mozilla::Backup manpage. This is not used at the moment.

allowed_options

  @options = Mozilla::Backup::Plugin::FileCopy->allowed_options();

  if (Mozilla::Backup::Plugin::FileCopy->allowed_options('debug')) {

    ...

  }

If no arguments are given, it returns a list of configuration parameters that can be passed to the constructor. If arguments are given, it returns true if all of the arguments are allowable options for the constructor.

munge_location

  $directory = $plugin->munge_location( $directory );

Munges the backup location name for use by this plugin. (Currently has no effect.)

open_for_backup

  if ($plugin->open_for_backup( $filename, %options )) {

    ...

  }

Creates a new archive for backing the profile. $filename is the name of the archive file to be used. %options are optional configuration parameters.

open_for_restore

  if ($plugin->open_for_restore( $filename, %options )) {

    ...

  }

Opens an existing archive for restoring the profile.

get_contents

  @files = $plugin->get_contents;

Returns a list of files in the archive.

backup_file

  $plugin->backup_file( $local_file, $internal_name );

Backs up the file in the archive, using $internal_name as the name in the archive.

close_backup

  $plugin->close_backup();

Closes the backup.

_log

  $moz->_log( $message, $level );

  $moz->_log( $message => $message, level => $level );

Logs an event to the dispatcher. If $level is unspecified, ``error'' is assumed.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy