
Attached is a perl-based re-implementation of backup.sh, which should in
theory run on every platform that OTRS itself runs on.
Features include:
- command-line compatible with backup.sh
- fixes a nasty date-related problem with removing old backups (now uses
Date::Pcalc)
- Additional options and switches to customize operation, including
database-dumper/archiver/compression programs to use, as well as
command-lines
- a --help switch to display a summary
- both long and short option switches so command-lines can be
self-documenting
- ability to specify the number of days of backups to keep
- uses Config.pm directly for pulling additional configuration
information
It will require a few additional perl modules (not attached) that I just
threw into ~otrs/Kernel/cpan-lib/. They are File::Which, File::NCopy,
and File::Remove, all of which are just single .pm files.
Alas, only tested under Linux currently, but if you have command-line DB
dumpers, archivers (ie, zip, rar, etc), and compressors (ie, zip, bzip2,
gzip, etc) for other OSes, you should be able to just specify them on
the
command-line to test the script.
--
E. Michael A. Gurski
participants (1)
-
E. Michael A. Gurski