Johan Vromans > SugarSync-API-0.06 > mirror_sync

Download:
SugarSync-API-0.06.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

mirror_sync -- sync a share to local disk

SYNOPSIS ^

mirror_sync [options]

 Options:
   --select XXX         select this path only
   --resume XXX         resume a sync run at this point
   --config XXX         alternate config file.
   --delete             delete local files not on the share
   --ident              show identification
   --help               brief help message
   --man                full documentation
   --verbose            verbose information
   --quiet              suppress informational messages

OPTIONS ^

--select path

When processing a hierarchy of folders, only process the named folder.

The folder name should be a relative file name, starting at the top level of the share. Shell wildcards * and ? are allowed, as are simple classes like [A-L]. Path matching is case idenpendent.

--resume path

When processing a hierarchy of folders, start at the named folder.

The folder name should be a relative file name, starting at the top level of the share. Shell wildcards * and ? are allowed, as are simple classes like [A-L]. Path matching is case idenpendent.

--config file

Alternate config file.

Default config file is $HOME/.config/sugarsync/config .

This should contain the username and password for Sugarsync.

--delete

Delete local files and folders that are not on the share.

--help

Print a brief help message and exits.

--man

Prints the manual page and exits.

--ident

Prints program identification.

--verbose

More verbose information. Repeat for even more information.

--quiet

Suppress informational messages.

DESCRIPTION ^

mirror_share will connect to the SugarSync cloud service and copy all files of the received shared folders to local disk.

If a local file already exists, the size and modification date is checked. If they match, the file is assumed to be up to date. On mismatch, the file is overwritten with a new downloaded copy.

CONFIG FILE ^

A config file is required to store the username and password for SugarSync access.

By default, the config file is .config/sugarsync/config in the users home directory. An alternative config file can be selected with the --config command line option.

The config file should contain:

  [auth]
  username = your_sugarsync_user_name
  password = your_sugarsync_password

SugarSync::API.

AUTHOR ^

Johan Vromans, <jv at cpan.org>

BUGS & SUPPORT ^

See SugarSync::API.

COPYRIGHT & LICENSE ^

Copyright 2011 Johan Vromans, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: