App::Followme::UploadSite - Upload changed and new files
my $app = App::Followme::UploadSite->new(\%configuration); $app->run($folder);
This module uploads changed files to a remote site. The default method to do the uploads is ftp, but that can be changed by changing the parameter upload_pkg. This package computes a checksum for every file in the site. If the checksum has changed since the last time it was run, the file is uploaded to the remote site. If there is a checksum, but no local file, the file is deleted from the remote site. If this module is run in quick mode, only files whose modification date is later then the last time it was run are checked.
The following fields in the configuration file are used:
The name of the file which holds the user name and password for the remote site in obfuscated form. Te default name is 'upload.cred'.
The name of the file containing all the checksums for files on the site. The default name is 'upload.hash'.
The number of upload errors the module tolerate before quitting. The default value is 5.
The name of the directory containing the credentials and hash file. This directory name is relative to the top directory of the site. The default name is '_state'.
The name of the package with methods that add and delete files on the remote site. The default is App::Followme::UploadFtp. Other packages can be written, the methods a package must support can be found in App::Followme::UploadNone.
Print names of uploaded files when not in quick mode
Copyright (C) Bernie Simon.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bernie Simon <email@example.com>