App::Followme::Uploadme - Upload changed and new files
my $app = App::Followme::UploadSite->new(\%configuration); $app->run($directory);
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. It is in the templates directory and the default name is 'upload.cred'.
The name of the file containing all the checksums for files on the site. It is in the templates directory and the default name is 'upload.hash'.
The number of upload errors the module tolerate before quitting. The default value is 5.
If the site has been uploaded by another program and is up to date, set this variable to 1. It will recompute the hash file, but not upload any files.
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::None.
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 <firstname.lastname@example.org>