#============================================================= -*-perl-*-
#
# BackupPC_zipCreate: create a zip archive of an existing dump
#============================================================= -*-perl-*-
#
# BackupPC_zipCreate: create a zip archive of an existing dump
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# See http://backuppc.sourceforge.net.
#
#========================================================================
use strict;
#
# See http://backuppc.sourceforge.net.
#
#========================================================================
use strict;
print(STDERR "usage: $0 [-t] [-h host] [-n dumpNum] [-s shareName]"
. " [-r pathRemove] [-p pathAdd] [-c compressionLevel]"
. " files/directories...\n");
exit(1);
}
print(STDERR "usage: $0 [-t] [-h host] [-n dumpNum] [-s shareName]"
. " [-r pathRemove] [-p pathAdd] [-c compressionLevel]"
. " files/directories...\n");
exit(1);
}
$fh->fdopen(fileno(STDOUT),"w");
my $zipfh = Archive::Zip->new();
$fh->fdopen(fileno(STDOUT),"w");
my $zipfh = Archive::Zip->new();
foreach my $dir ( @ARGV ) {
archiveWrite($zipfh, $dir);
}
foreach my $dir ( @ARGV ) {
archiveWrite($zipfh, $dir);
}