Bio-GMOD
view release on metacpan or search on metacpan
bin/gmod_update_installation-wormbase.PLS view on Meta::CPAN
Update databases without updating the software:
./gmod_update_installation-wormbase.pl \
--sync_to live \
--update_databases
=head1 Excluding files from the syncing process
If you have local files or directories stored in your WormBase
distribution, you can prevent them from being overwritten by the
update process by passing a space separated list of files/directories
with the '--exclude' option. This options will be passed directly to
rsync. See the rsync man page for more details. Note that you do NOT
need to include files that contain local defaults (like localdefs.pm)
as these are exluded by default.
=head1 Running under cron
You may wish to run this script under cron to ensure that your
installation is always up-to-date.
A suggested crontab entry for a simple local installation is:
0 2,14 * * * gmod_update_intallation.pl --sync_to live --purge 1
A suggested crontab entry for official WormBase mirror sites is:
0 2,14 * * * gmod_update_intallation.pl --sync_to live \
--update_databases --update_software \
--steps analyze_logs
Crontab entries like these will check for updates twice a day --
including updating the software. Be sure to include any necessary
options as well, such as the path to your mysql data directory.
=head1 BUGS
None reported.
=head1 SEE ALSO
L<Bio::GMOD>, L<Bio::GMOD::Update>, L<Bio::GMOD::Update::WormBase>,
L<Bio::GMOD::Adaptor>, L<Bio::GMOD::Adaptor::WormBase>
=head1 AUTHOR
Todd W. Harris E<lt>harris@cshl.orgE<gt>.
Copyright (c) 2004-2005 Cold Spring Harbor Laboratory.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
!NO!SUBS!
close OUT or die "Can't close $file: $!";
chmod 0755, $file or die "Can't reset permissions for $file: $!\n";
exec("$Config{'eunicefix'} $file") if $Config{'eunicefix'} ne ':';
chdir $origdir;
( run in 0.682 second using v1.01-cache-2.11-cpan-d8267643d1d )