initial commit of file from CVS for e-smith-backup on Thu 26 Oct 11:24:24 BST 2023

This commit is contained in:
2023-10-26 11:24:24 +01:00
parent bb6b15a5a9
commit fe41ccadec
81 changed files with 9900 additions and 2 deletions

View File

View File

@@ -0,0 +1 @@
tape

View File

@@ -0,0 +1 @@
flexbackup

View File

@@ -0,0 +1 @@
2:00

View File

@@ -0,0 +1 @@
14:00

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1 @@
22:00

View File

@@ -0,0 +1 @@
6

View File

@@ -0,0 +1 @@
gzip

View File

@@ -0,0 +1 @@
1

View File

@@ -0,0 +1 @@
no

View File

@@ -0,0 +1 @@
backup

View File

@@ -0,0 +1 @@
backup

View File

@@ -0,0 +1 @@
dar

View File

@@ -0,0 +1 @@
1

View File

@@ -0,0 +1 @@
host

View File

@@ -0,0 +1 @@
share

View File

@@ -0,0 +1 @@
8

View File

@@ -0,0 +1 @@
cifs

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1,2 @@
#! /bin/sh
exec rm -f /home/e-smith/files/ibays/Primary/html/index.htm

View File

@@ -0,0 +1,22 @@
#!/usr/bin/perl -w
package esmith;
use strict;
use esmith::ConfigDB;
my $event = shift;
my $cause = shift;
exit 0 if not defined $cause or $cause ne "tape";
my $confdb = esmith::ConfigDB->open_ro;
my $backup = $confdb->get('backup') or die "No backup db entry found\n";
my $device = $backup->prop('Device') || '/dev/st0';
my $eject = $backup->prop('Eject') || 'no';
exit 0 unless $device =~ /[sh]t/;
if (lc($eject) eq 'yes') {
exec("/bin/mt", "-f", $device, "eject");
die("A problem occurred execing mt");
}

View File

@@ -0,0 +1,31 @@
#!/usr/bin/perl -w
#----------------------------------------------------------------------
# copyright (C) 1999-2003 Mitel Networks Corporation
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Technical support for this program is available from Mitel Networks
# Please visit our web site www.mitel.com/sme/ for details.
#----------------------------------------------------------------------
use esmith::Backup;
my $backup = new esmith::Backup or die "Couldn't create Backup object\n";
unless ($backup->merge_system_files)
{
die "Error merging system files\n";
}
exit 0;

View File

@@ -0,0 +1,41 @@
#!/usr/bin/perl -w
#----------------------------------------------------------------------
# copyright (C) 2001 e-smith, inc.
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Technical support for this program is available from e-smith, inc.
# Please visit our web site www.e-smith.com for details.
#----------------------------------------------------------------------
package esmith;
use strict;
use Errno;
use esmith::ConfigDB;
my $restdb = esmith::ConfigDB->open('/etc/e-smith/restore') ||
esmith::ConfigDB->create('/etc/e-smith/restore');
my $restore = $restdb->get('restore') ||
$restdb->new_record('restore',
{
type => 'status',
start => '0',
finish => '0',
});
$restore->set_prop(state => 'idle');
exit (0);

View File

@@ -0,0 +1,58 @@
#!/usr/bin/perl
#----------------------------------------------------------------------
# copyright (C) 2006 Charlie Brady
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#----------------------------------------------------------------------
package esmith;
use warnings;
use strict;
use esmith::ConfigDB;
use esmith::Backup;
my $event = shift;
my $path = shift;
my $confdb = esmith::ConfigDB->open_ro;
my $backup = $confdb->get('backup') or die "No backup db entry found\n";
my $program = $backup->prop('Program');
exit 0 unless $program eq 'CopyFromDisk';
die("Root path to restore from must be provided\n") unless defined $path && -d $path;
chdir $path or die "Could not chdir to $path: $!";
my $backup_db = new esmith::Backup or die "Couldn't create Backup object\n";
my @restore = $backup_db->restore_list;
die "Can't fork: $!" unless defined(my $pid = open(STDIN, "-|"));
if ($pid)
{
# parent - extract files to /
exec(qw(tar -C / -xf -));
}
else
{
# create archive from $path which are to be restored
chroot($path) || die "Can't chroot to $path";
open(STDERR, ">/dev/null");
exec(qw(tar -C / -cf -), @restore);
}

View File

@@ -0,0 +1,40 @@
#!/usr/bin/perl -w
#----------------------------------------------------------------------
# copyright (C) 2001 e-smith, inc.
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Technical support for this program is available from e-smith, inc.
# Please visit our web site www.e-smith.com for details.
#----------------------------------------------------------------------
package esmith;
use strict;
use esmith::ConfigDB;
my $event = shift;
my $cause = shift;
exit 0 if not defined $cause or $cause ne "tape";
my $confdb = esmith::ConfigDB->open_ro;
my $backup = $confdb->get('backup') or die "No backup db entry found\n";
my $device = $backup->prop('Device') || '/dev/st0';
exit 0 unless $device =~ /[sh]t/;
exec("/bin/mt", "-f", $device, "rewind");
die("A problem occurred execing mt");

View File

@@ -0,0 +1,31 @@
#!/usr/bin/perl -w
#----------------------------------------------------------------------
# copyright (C) 1999-2003 Mitel Networks Corporation
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Technical support for this program is available from Mitel Networks
# Please visit our web site www.mitel.com/sme/ for details.
#----------------------------------------------------------------------
use esmith::Backup;
my $backup = new esmith::Backup or die "Couldn't create Backup object\n";
unless ($backup->save_system_files)
{
die "Error saving system files\n"
}
exit 0;

View File

@@ -0,0 +1,523 @@
#!/usr/bin/perl -w
#----------------------------------------------------------------------
# copyright (C) 2006-2007 Jean-Paul Leclere <jean-paul@leclere.org>
# copyright (C) 2007 Charlie Brady <charlieb@e-smith.com>
#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#----------------------------------------------------------------------
use strict;
use Errno;
use esmith::util;
use esmith::templates;
use File::Copy;
use File::Path qw(make_path remove_tree);
use File::Find;
use POSIX qw(:sys_wait_h strftime);
use File::Glob qw(bsd_glob);
use esmith::ConfigDB;
use esmith::Backup;
use esmith::BlockDevices;
sub ldie;
sub start_dar_killer;
sub run_backup;
my $job = shift || 'DailyBackup';
my $confdb = esmith::ConfigDB->open;
my $backupwk = $confdb->get('backupwk') or die "No backupwk db entry found\n";
my $bkname = strftime '%Y%m%d%H%M%S', localtime;
my $dow = strftime '%w', localtime;
my $ref = "";
my $id = $backupwk->prop('Id') ||
$confdb->get('SystemName')->value . "." . $confdb->get('DomainName')->value;
my $internalinterface = $confdb->get('InternalInterface') or die "No internalinterface db entry found\n";
my $ether = $internalinterface->prop('Name');
my $smbhost = $backupwk->prop('SmbHost');
my $smbshare = $backupwk->prop('SmbShare');
my $smbv1 = $backupwk->prop('SmbV1') || 'disabled';
my $smbhostmac = $backupwk->prop('SmbHostMAC');
my $smbhostdelay = $backupwk->prop('SmbHostDelay') || 300;
my $login = $backupwk->prop('Login');
my $password = $backupwk->prop('Password');
my $setsmax = $backupwk->prop('SetsMax') || 1;
my $daysinset = $backupwk->prop('DaysInSet') || 1;
my $setnum = $backupwk->prop('SetNum'); $setnum = $setsmax unless defined $setnum;
my $incnum = $backupwk->prop('IncNum'); $incnum = ($daysinset-1) unless defined $incnum;
my $timeout = (($backupwk->prop('Timeout') * 3600) - 30) || '88500';
my $inconly = $backupwk->prop('IncOnlyTimeout') || 'no';
my $VFSType = $backupwk->prop('VFSType') || 'cifs';
my $fullday = $backupwk->prop('FullDay'); $fullday = 7 unless defined $fullday;
my $mail = $backupwk->prop('MailNotify') || 'yes';
my $frommail = $backupwk->prop('FromMail') || 'admin-backup';
my $tomail = $backupwk->prop('ToMail') || 'admin';
my $mntdir = $backupwk->prop('Mount') || '/mnt/smb';
$mntdir = "\/$smbshare" if ($VFSType eq 'usb'); # ToDo change to $backupwk->prop('Mount')
my $deleteearly = $backupwk->prop('DeleteEarly') || 'false';
my @backup_excludes = esmith::Backup->excludes;
@backup_excludes = map "\t/$_\n", sort @backup_excludes;
my $report = "From: $frommail\n";
$report .= "To: $tomail\n";
$report .= "Subject: Daily Backup Report: $id\n\n";
$report .= "================================== \n";
$report .= "DAILY BACKUP TO WORKSTATION REPORT \n";
$report .= "================================== \n";
$report .= "Backup of $id started at " .localtime() . "\n";
$report .= "================================== \n";
if (@backup_excludes) {
$report .= "Some parts are excluded of your backup: \n";
$report .= "@backup_excludes";
$report .= "================================== \n";
}
# ping the SMB Host to see if it is awake
$report .= wol ($ether,$smbhost,$smbhostmac,$smbhostdelay);
# mount backup
bmount($mntdir,$smbhost,$smbshare,$VFSType,$smbv1);
# rotating backup indicators
$incnum++;
$incnum = 0 if ($dow == $fullday && $incnum > $daysinset-7) ||
($fullday == 7 && $incnum >= $daysinset);
if ($incnum == 0)
{
$setnum %= $setsmax;
$setnum++;
}
# if no set directory, make it
my $setname = "set$setnum";
my $setdirname = "$mntdir/$id/$setname";
createTree ($setdirname);
$report .= "Destination //$smbhost/$smbshare/$id/$setname\n";
if ( $incnum == 0 )
{
$bkname = "full-" . $bkname;
}
else
{
# if $incnum <> 0 backup should be incremental
# we find correct reference backup for incremental
my $file;
opendir(DIR, $setdirname) or ldie("Can't open dir $setdirname $!");
while (defined($file = readdir(DIR)))
{
next if $file =~ /^\.\.?$/;
if ($file =~ /dar$/)
{
$ref = $file;
}
}
closedir (DIR);
# if no reference do full backup
if ($ref eq "")
{
$incnum = 0;
$report .= "No existing reference backup, will make full backup \n";
$bkname = "full-" . $bkname;
}
else
{
# removing .dar extension
$ref =~ s/\..*\.dar$//;
$ref = "--ref|" . $setdirname . "/" . $ref; # | will be used to split this string in run_backup()
$bkname = "inc-" . sprintf("%03d", $incnum) . "-". $bkname;
}
}
unless ( ( $incnum != 0 ) || ( $fullday == 7 ) || ( $dow == $fullday ) )
{
my $delay = ($fullday - $dow) % 7;
ldie("Not a permitted day for full backup. Aborting...\nNext full backup in $delay days.\n");
}
$report .= "Basename $bkname\n";
# calculate real timeout if we timeout incrementals only.
# timeout of 88500 is a security for aborting backup within 24h
if ( ($ref eq "") && ($inconly eq "yes"))
{
$timeout = 88500;
}
$report .= "Starting the backup with a timeout of ". int ($timeout/(60*60)). " hours\n";
# Expand backup configuration file template
processTemplate ({TEMPLATE_PATH => "/etc/dar/$job.dcf"});
# If this is a new set and delete before backup is in use
# then empty target directory of any .dar files
if (($deleteearly eq 'true') && (($incnum == 0)))
{
foreach my $file (glob("$setdirname/*.dar"))
{
unlink $file or ldie("Error deleting old backup files in $setdirname : $!")
}
}
my $destination = ($deleteearly ne 'true') ? "$mntdir/$id/$bkname" : "$setdirname/$bkname";
# Perform the actual backup
my $rc = run_backup($destination);
if ($rc != 0 && $rc != 11)
{
ldie("Error while running dar: $rc");
}
if ($deleteearly ne 'true') # Not DeleteEarly so move backup to $setdirname
{
if ($incnum == 0) # If this is a new set then empty target directory of any .dar files
{
foreach my $file (glob("$setdirname/*.dar"))
{
unlink $file or ldie("Error deleting old backup files in $setdirname : $!")
}
}
foreach (bsd_glob("$mntdir/$id/*.dar")) # Move the backup files to the set directory
{
ldie("Error while moving backup file $_ to $setdirname : $!")
unless move($_, $setdirname);
}
}
# update dar_manager catalog
updateDarCatalog ("$mntdir/$id");
# Check free disk space
my $df = qx(/bin/df -Ph \"$mntdir\");
if ($df =~ /(\S+)\s+(\S+)\s+(\S+)\s+(\d*%)/)
{
$report .= "Destination disk usage $2, $4 full, $3 available\n";
}
else
{
$report .= "Destination disk space not available\n";
}
# unmount shared folder
system("/bin/umount", "-f", "$mntdir") unless ($VFSType eq 'mnt');
# time now to update backup configuration
$backupwk->set_prop('SetNum', $setnum);
$backupwk->set_prop('IncNum', $incnum);
$report .= "Backup successfully terminated at ".localtime()."\n";
# Send the Workstation Backup report
if ($mail eq 'yes') {sendReport ($report);}
exit (0);
sub ldie
{
my $errmsg = shift;
$report =~ s/Report:/Failed:/;
$report .= "*** No backup allowed or error during backup ***\n";
$report .= $errmsg;
if (($mail eq 'yes') || ($mail eq 'error'))
{
sendReport ($report,$errmsg);
}
if (($VFSType ne 'mnt') && (!checkMount ($mntdir)))
{
system("/bin/umount", "-f", "$mntdir");
}
die($errmsg);
}
sub start_dar_killer
{
my ($darpid, $gracetime) = @_;
my $tick = $gracetime/10;
my $killer = fork;
return $killer if $killer;
POSIX::setsid;
chdir '/';
#fork && exit;
# wait for timeout or backup termination
while ($tick > 0)
{
sleep 10;
$tick--;
exit unless (kill(0, $darpid));
}
if (kill(0, $darpid))
{
while (kill('QUIT', $darpid) != 1)
{
warn "Failed to stop $darpid dar process\n";
}
}
warn "Partial backup stored on backup workstation.\n",
"Session cleanly closed by timeout after $timeout seconds.\n",
"Not an error, backup process will continue next night.\n";
exit;
}
sub run_backup
{
my $dest = shift;
my $data = undef;
my $pid = undef;
my $killerpid = undef;
eval
{
($pid = open INPUT, "-|", "/usr/bin/dar", "-Q", "-asecu", "-az", "--create", "$dest", split(/\|/,$ref), "-B", "/etc/dar/$job.dcf") or ldie("cannot start : $!" );
if ($pid)
{
$killerpid = start_dar_killer($pid, $timeout);
}
$data = do { local($/); <INPUT> };
};
$report .= $data;
if ($killerpid && kill(0, $killerpid))
{
while (kill('TERM', $killerpid) != 1)
{
warn "Failed to kill $killerpid killer process\n";
}
waitpid($killerpid, 0);
}
waitpid($pid, 0);
my $code = WEXITSTATUS($?);
close(INPUT);
return $code;
}
# Copied from /etc/e-smith/web/functions/backup
# TODO: Move to a shared module
sub checkMount
{
# check if $mountdir is mounted
my $mountdir = shift;
$|=1; # Auto-flush
my @res = qx( findmnt $mountdir );
return ( !@res );
}
# Copied from /etc/e-smith/web/functions/backup
# TODO: Move to a shared module
sub dmount
{
# mount dar unit according to dar-workstation configuration
# return nothing if mount successfull
my ($host,$share,$mountdir,$login,$password,$VFSType,$smbv1) = @_;
if ($VFSType eq 'cifs')
{
my $opt= ($smbv1 eq "enabled")? ",vers=1.0": "";
return ( qx(/bin/mount -t cifs "//$host/$share" $mountdir -o credentials=/etc/dar/CIFScredentials,nounix$opt 2>&1) );
}
elsif ($VFSType eq 'nfs')
{
return ( qx(/bin/mount -t nfs -o nolock "$host:/$share" $mountdir 2>&1) );
}
elsif ($VFSType eq 'usb')
{
my $device = "";
my $vollbl = "";
my $devices = esmith::BlockDevices->new ('allowmount' => 'disabled');
my ($valid, $invalid) = $devices->checkBackupDrives(0);
if ( ${$valid}[0] ) {
foreach ( @{$valid} ) {
$vollbl = $devices->label($_);
if ( $share eq "media/$vollbl" ) {
$device = "/dev/$_";
}
}
}
$devices->destroy;
return ( qx (mount $device /$share 2>&1) );
}
else
{
return ("Error while mounting $host/$share : $VFSType not supported.\n");
}
}
sub removeTree
{
my $tree = shift;
if (-d "$tree")
{
eval {remove_tree("$tree")};
ldie("Error while deleting $tree : $@.\n") if $@;
}
return;
}
sub createTree
{
my $tree = shift;
if (! -d "$tree")
{
eval {make_path("$tree")};
ldie("Error while creating $tree : $@. Maybe insufficient rights directory.\n") if $@;
}
return;
}
sub sendReport
{
my $text = shift;
my $error = shift || "";
open (MAIL, "|/var/qmail/bin/qmail-inject")
|| die "Cannot start mail program: $! $error\n";
print MAIL $text;
close(MAIL);
return;
}
sub wol
{
my ($ether,$host,$mac,$delay) = @_;
my $output="";
if (defined($mac) && (system("ping -c1 $host > /dev/null") != 0)) {
$output .= "$host might be asleep, attempting to wake\n";
system("ether-wake -i $ether $mac");
$output .= "Waiting $delay seconds...\n";
sleep $delay;
}
return $output;
}
sub updateDarCatalog
{
# update dar_manager catalog
my $mntbkdir = shift;
my $catalog = "$mntbkdir/dar-catalog";
my %backupfiles = (); # hash of backup files found on the disk.
unless ( -e $catalog) # Create an empty catalog if none found
{
system("/usr/bin/dar_manager", "-Q", "-C", "$catalog") == 0
or ldie("Unable to create dar_manager catalog.\n");
sleep 1; # sleep added to ensure the creation of a valid catalog
}
# find available backups for the server
my $setbackuplist = sub {if($_ =~ /([\w|-]+)-(\d+)\..*\.dar/){$backupfiles{$2} = $File::Find::dir."/$1-$2";}};
find { wanted => \&$setbackuplist, untaint => 1, follow => 1 }, $mntbkdir ;
my @deletions;
my $pid = open (DAR_LIST, "-|", "/usr/bin/dar_manager", "-Q", "-B", "$catalog", "-l") or ldie ("Cannot start : $!");
my $catalogIndex; # Dar refers to each backup by an index
my $oldkey=0; # The key for %backupfiles is the timestamp
while (<DAR_LIST>)
{
next unless ($_ =~ /(\d+).*\s[\w|-]+-(\d+)/);
($catalogIndex, $oldkey) = ($1,$2);
if (defined($backupfiles{$oldkey})) # found on disk and in catalog
{
delete $backupfiles{$oldkey}; # so that it will not be added in the next step.
}
else
{
push @deletions, $catalogIndex; # Will be deleted from the catalog
}
}
waitpid ($pid, 0);
my $err = WEXITSTATUS($?);
close (DAR_LIST);
ldie ("Catalog error : $err") if $err;
# Delete backups from the catalog that were missing on disk in descending order
while (my $catIndex = pop @deletions)
{
system("/usr/bin/dar_manager", "-Q", "-ai", "-B", "$catalog", "-D", "$catIndex") == 0
or ldie("Failed to delete set $catIndex from catalog. $!\n");
sleep 1; # sleep added to ensure the creation of a valid catalog
}
# Add backups that were missing from the catalog in chronological order
foreach my $key (sort keys %backupfiles)
{
next unless ($key > $oldkey); # prevent adding old backups to the catalog
system("/usr/bin/dar_manager", "-Q", "-ai", "-B", "$catalog", "-A", "$backupfiles{$key}") == 0
or ldie("Failed to add set $backupfiles{$key} to catalog. $!\n");
sleep 1; # sleep added to ensure the creation of a valid catalog
}
return;
}
sub bmount
{
my ($mntdir,$host,$share,$VFSType,$smbv1) = @_;
# verify backup directory not already mounted
if (!checkMount ($mntdir))
{
return if ($VFSType eq 'mnt');
ldie("Seems backup directory is already mounted. " .
"It should not happen and maybe there is a zombie process " .
"you must kill, or another backup in progress. \n");
}
else
{
if ($VFSType eq 'mnt')
{
ldie("Seems backup directory is not mounted. " .
"The backup directory must be mounted when using type 'mnt'. \n");
}
}
# create the directory mount point if it does not exist
createTree ($mntdir);
# mount the backup directory
my $err = dmount($host,$share,$mntdir,'','',$VFSType,$smbv1);
ldie("Error while mounting <//$smbhost/$smbshare>\n" . $err) if $err;
# verify $mntdir is mounted
if (checkMount ($mntdir))
{
# The mount should have suceeded, but sometimes it needs more time,
# so sleep and then check again.
sleep 5;
if (checkMount ($mntdir))
{
ldie("Seems backup directory is not really mounted. It should not happen. \
Verify availability of your backup volume. Stopping the backup now.\n");
}
}
return;
}

View File

View File

View File

@@ -0,0 +1,945 @@
<lexicon lang="en-us">
<entry>
<base>BACKUP_TITLE</base>
<trans>Backup or restore server data</trans>
</entry>
<entry>
<base>BACKUP_DESC</base>
<trans>
<![CDATA[
<P>The server provides two ways to back up and restore
your server: using your local desktop or a tape drive.</P>
<P>The first method creates a copy of your server configuration and user
data files, and downloads it to your local desktop via your web browser.
Currently your configuration and data files total approximately
<b>$tarsize</b>. The backup file will be somewhat less than this,
depending on how compressible the data are. The \"Verify desktop backup
file\" option can be used to check the integrity of a desktop backup
file.</P>
<P>The tape backup method uses a software package called <I>$module</I>
to back up your entire hard disk to tape every night. This requires a
supported tape drive and a tape that is not write-protected. The backup
is performed automatically at the selected time every night (with a
reminder automatically e-mailed to the administrator during the day).
Currently your hard disk contains <b>$dumpsize</b> of data.</P>
<P>Both restore methods allow you to restore your configuration and user
data files. <b>Ideally, the restore should be performed on a freshly
installed server</b>.</P>
]]>
</trans>
</entry>
<entry>
<base>BACKUP_DESC_DAR</base>
<trans>
<![CDATA[
<P>Three ways are provided to back up and restore your
server: using a tape drive, using a network share or a local
removable disk, or using your local desktop.</P>
<P>Tape Backup. This method uses a software package called <I>$module</I>
to back up your entire hard disk to tape every night. This requires a
supported tape drive and a tape that is not write-protected. The backup
is performed automatically at the selected time every night (with a
reminder automatically e-mailed to the administrator during the day).
Currently your hard disk contains <b>$dumpsize</b> of data.</P>
<P>Workstation backup. This method uses a software package called <I>dar</I>
to back up your server configuration and data files to a network share
or a local removable disk such as a USB disk.
You can manage how many rotating sets of backups are kept,
and how many incremental backups to have in each set.
The backup is performed automatically at the selected time every day. Currently
configuration and data files total approximately <b>$tarsize</b> uncompressed.
Twice the compressed data size must be available on the backup share.</P>
<P>Backup to Desktop. This method creates a copy of your server
configuration and user data files, and downloads it to your
local desktop via your web browser.
Currently your configuration and data files total approximately
<b>$tarsize</b>. The backup file will be somewhat less than this,
depending on how much the data can be compressed.
This file can be used to restore the server from the console if you
copy it to a local removable disk such as a USB disk.</P>
<P>All backup methods allow you to restore your configuration and user
data files. Workstation backup provides individual file restore. <b>Ideally,
full restore should be performed on a freshly installed server</b>.</P>
]]>
</trans>
</entry>
<entry>
<base>BACKUP_CONFIG_STATUS</base>
<trans>Backup configuration and status</trans>
</entry>
<entry>
<base>TAPE_BACKUPS_ENABLED</base>
<trans>
<![CDATA[
Tape backups are currently <b>enabled</b>.
]]>
</trans>
</entry>
<entry>
<base>BACKUPS_RUN_AT</base>
<trans>Regular tape backups will run at: </trans>
</entry>
<entry>
<base>REMINDER_MESSAGE_AT</base>
<trans>Reminder messages will be sent at: </trans>
</entry>
<entry>
<base>TAPE_BACKUPS_DISABLED</base>
<trans>
<![CDATA[
Tape backups are <b>disabled</b>
]]>
</trans>
</entry>
<entry>
<base>DESKTOP_BACKUP</base>
<trans>Backup to desktop</trans>
</entry>
<entry>
<base>DESKTOP_RESTORE</base>
<trans>Restore from desktop</trans>
</entry>
<entry>
<base>DESKTOP_VERIFY</base>
<trans>Verify desktop backup file</trans>
</entry>
<entry>
<base>TAPE_CONFIGURE</base>
<trans>Configure tape backup</trans>
</entry>
<entry>
<base>TAPE_RESTORE</base>
<trans>Restore from tape</trans>
</entry>
<entry>
<base>RESTORE_IN_PROGRESS_BEGAN_AT</base>
<trans>A system restore is in progress. It began at: </trans>
</entry>
<entry>
<base>REFRESH_THIS_DISPLAY</base>
<trans>Refresh this display</trans>
</entry>
<entry>
<base>CONFIGURE_TAPE_BACKUP</base>
<trans>Configure tape backup</trans>
</entry>
<entry>
<base>RESTORE_COMPLETED</base>
<trans>A system restore has completed</trans>
</entry>
<entry>
<base>STARTED_AT</base>
<trans>It began at: </trans>
</entry>
<entry>
<base>FINISHED_AT</base>
<trans>and finished at: </trans>
</entry>
<entry>
<base>YOU_MUST_REBOOT</base>
<trans>
You must reboot the server to activate any configuration changes that were
made as a result of this restore.
</trans>
</entry>
<entry>
<base>REBOOT</base>
<trans>Reboot</trans>
</entry>
<entry>
<base>SELECT_AN_ACTION</base>
<trans>Select an action</trans>
</entry>
<entry>
<base>X_BACKUP_OR_RESTORE</base>
<trans>X Backup or restore server data</trans>
</entry>
<entry>
<base>ERR_PRE_BACKUP</base>
<trans>Error occurred during pre-backup actions.</trans>
</entry>
<entry>
<base>ERR_PRE_RESTORE</base>
<trans>Error occurred during pre-restore actions.</trans>
</entry>
<entry>
<base>ERR_POST_BACKUP</base>
<trans>Error occurred during post-backup actions.</trans>
</entry>
<entry>
<base>RESTORE_SERVER_CONFIG</base>
<trans>Restore server configuration</trans>
</entry>
<entry>
<base>DESKTOP_RESTORE_DESC</base>
<trans>
<![CDATA[
This process will upload a server backup file from your local desktop to your server and restore the configuration and user data files. <B>The restore should be performed on a freshly installed server</B>.
]]>
</trans>
</entry>
<entry>
<base>FREE_SPACE</base>
<trans>
<![CDATA[
You have approximately $tmpfree free space on the server.
Check that desktop backup file is less than $halffree before
commencing the restore.
]]>
</trans>
</entry>
<entry>
<base>MUST_REBOOT_AFTER_RESTORE</base>
<trans>After the restore completes you must reboot the server.</trans>
</entry>
<entry>
<base>FILE_TO_RESTORE</base>
<trans>Backup file to restore from</trans>
</entry>
<entry>
<base>VERIFY_BACKUP_DESC</base>
<trans>
<![CDATA[
<p>This option will display the names of all files
in a previously created desktop backup file. You
can use this option to verify the contents of the
backup file.</p>
]]>
</trans>
</entry>
<entry>
<base>SELECT_BACKUP_FILE</base>
<trans>Select backup file</trans>
</entry>
<entry>
<base>VERIFY</base>
<trans>Verify</trans>
</entry>
<entry>
<base>RESTORE_CANNOT_PROCEED</base>
<trans>Unable to proceed with restore of server configuration</trans>
</entry>
<entry>
<base>ANOTHER_RESTORE_IN_PROGRESS</base>
<trans>Another restore is in progress. Please try again later.</trans>
</entry>
<entry>
<base>RESTORE_IN_PROGRESS</base>
<trans>Restore in progress</trans>
</entry>
<entry>
<base>RESTORE_IN_PROGRESS_DESC</base>
<trans>
After the restore completes you must reboot the server. Your restore is
complete when the words "Restore complete" appear at the bottom of your screen.
</trans>
</entry>
<entry>
<base>FILES_HAVE_BEEN_RESTORED</base>
<trans>The following files and directories have been restored:</trans>
</entry>
<entry>
<base>RESTORE_FAILED_MSG</base>
<trans>Restore failed! There was an error in reading the backup file.</trans>
</entry>
<entry>
<base>RESTORE_COMPLETE</base>
<trans>Restore complete</trans>
</entry>
<entry>
<base>ERR_RESTORING_GID</base>
<trans>Error occurred while restoring gid of 'www'</trans>
</entry>
<entry>
<base>ERR_RESTORING_INITIAL_GRP</base>
<trans>Error occurred while restoring initial group of 'www'.</trans>
</entry>
<entry>
<base>RESTORE_FAILED</base>
<trans>Restore failed! The backup file was incomplete.</trans>
</entry>
<entry>
<base>COULD_NOT_EXEC_PIPELINE</base>
<trans>Could not execute backup pipeline: </trans>
</entry>
<entry>
<base>COULD_NOT_DECODE</base>
<trans>Could not decode backup file: </trans>
</entry>
<entry>
<base>FILES_IN_BACKUP</base>
<trans>The following files are considered in the backup :</trans>
</entry>
<entry>
<base>VERIFY_COMPLETE</base>
<trans>Verification is complete</trans>
</entry>
<entry>
<base>BACKUP_FILE_INCOMPLETE</base>
<trans>The backup file was incomplete</trans>
</entry>
<entry>
<base>ERR_READING_FILE</base>
<trans>There was an error in reading the backup file.</trans>
</entry>
<entry>
<base>ENABLE_DISABLE_TAPE</base>
<trans>Enable/Disable Nightly Tape Backup</trans>
</entry>
<entry>
<base>TAPE_CONFIG_DESC</base>
<trans>
<![CDATA[
<p>Select whether you wish to enable nightly backups. Then indicate the
desired times for the backup and the load tape reminder.</p> <p>The tape
backup requires a supported tape drive. A warning message will be sent to
the administrator at the designated reminder time if the tape drive is
empty.</p>
]]>
</trans>
</entry>
<entry>
<base>ENABLE_TAPE_BACKUP</base>
<trans>Enable tape backup</trans>
</entry>
<entry>
<base>TAPE_BACKUP_TIME</base>
<trans>Tape backup time of day (hour/min)</trans>
</entry>
<entry>
<base>LOAD_TAPE_REMINDER_TIME</base>
<trans>Load tape reminder time of day (hour/min)</trans>
</entry>
<entry>
<base>AM/PM</base>
<trans>AM/PM</trans>
</entry>
<entry>
<base>AM</base>
<trans>AM</trans>
</entry>
<entry>
<base>PM</base>
<trans>PM</trans>
</entry>
<entry>
<base>UPDATE_CONF</base>
<trans>Update</trans>
</entry>
<entry>
<base>UPDATING_TAPE_CONF</base>
<trans>Updating tape backup configuration</trans>
</entry>
<entry>
<base>ERR_INVALID_HOUR</base>
<trans>Error: invalid backup hour: </trans>
</entry>
<entry>
<base>BETWEEN_0_AND_12</base>
<trans>Please choose an hour between 0 and 12.</trans>
</entry>
<entry>
<base>ERR_INVALID_MINUTE</base>
<trans>Error: invalid backup minute: </trans>
</entry>
<entry>
<base>BETWEEN_0_AND_59</base>
<trans>Please choose a minute between 0 and 59.</trans>
</entry>
<entry>
<base>ERR_INVALID_REMINDER_HOUR</base>
<trans>Error: invalid reminder hour: </trans>
</entry>
<entry>
<base>ERR_INVALID_REMINDER_MINUTE</base>
<trans>Error: invalid reminder minute: </trans>
</entry>
<entry>
<base>ERR_CONF_BACKUP</base>
<trans>Error occurred during conf-backup event.</trans>
</entry>
<entry>
<base>SUCCESSFULLY_ENABLED_TAPE</base>
<trans>Successfully enabled tape backups</trans>
</entry>
<entry>
<base>WITH_BACKUP_TIME</base>
<trans>with backup time: </trans>
</entry>
<entry>
<base>WITH_REMINDER_TIME</base>
<trans>and load tape reminder time: </trans>
</entry>
<entry>
<base>SUCCESSFULLY_DISABLED</base>
<trans>Successfully disabled tape backups</trans>
</entry>
<entry>
<base>RESTORE_CONF_FROM_TAPE</base>
<trans>Restore server configuration from tape backup</trans>
</entry>
<entry>
<base>RESTORE_CONF_FROM_TAPE_DESC</base>
<trans>
<![CDATA[
<P>This process will restore the configuration and user data files from a
server tape backup. <B>The restore should be performed on a freshly installed server</B>.</P>
<P>Ensure that you have loaded the desired backup tape into the tape drive
before proceeding.</P>
<P>After the restore completes you must reboot the server.</P>
]]>
</trans>
</entry>
<entry>
<base>RESTORE_FROM_TAPE</base>
<trans>Restore From Tape</trans>
</entry>
<entry>
<base>UNABLE_TO_RESTORE_CONF</base>
<trans>Unable to restore server configuration</trans>
</entry>
<entry>
<base>RESTORING_FROM_TAPE</base>
<trans>Restoring From Tape</trans>
</entry>
<entry>
<base>NOW_RESTORING_FROM_TAPE</base>
<trans>
Your server configuration and user data
files are now being restored from tape.
</trans>
</entry>
<entry>
<base>ERR_RESTORING_FROM_TAPE</base>
<trans>Error occurred restoring files from tape.</trans>
</entry>
<entry>
<base>ERR_UPDATING_CONF_AFTER_TAPE_RESTORE</base>
<trans>Error occurred while updating system configuration after tape
restore.
</trans>
</entry>
<entry>
<base>COULD_NOT_FORK</base>
<trans>Could not fork: </trans>
</entry>
<entry>
<base>SERVER_REBOOT</base>
<trans>Server reboot</trans>
</entry>
<entry>
<base>SERVER_WILL_REBOOT</base>
<trans>Your server will now reboot.</trans>
</entry>
<entry>
<base>NO_UID_FOR_NAME</base>
<trans>Could not get uid for user named: </trans>
</entry>
<entry>
<base>PAGE_REFRESH_IN</base>
<trans><![CDATA[
This page will refresh to the status display in {$sec} seconds, or
click <a href="/server-manager/cgi-bin/backup">here</a>.
]]></trans>
</entry>
<entry>
<base>Backup or restore</base>
<trans>Backup or restore</trans>
</entry>
<entry>
<base>BACKUP_DESKTOP_TOO_BIG</base>
<trans>
<![CDATA[
<div class="error">
Your server has too much data for a reliable backup to desktop.
</div>
]]>
</trans>
</entry>
<entry>
<base>WORKSTN_BACKUPS_DISABLED</base>
<trans>
<![CDATA[
Workstation backups are <b>disabled</b>
]]>
</trans>
</entry>
<entry>
<base>WORKSTN_BACKUPS_ENABLED</base>
<trans>
<![CDATA[
Workstation backups are currently <b>enabled</b>.
]]>
</trans>
</entry>
<entry>
<base>WKBACKUPS_RUN_AT</base>
<trans>Regular workstation backups will run at: </trans>
</entry>
<entry>
<base>WORKSTN_CONFIGURE</base>
<trans>Configure workstation backup</trans>
</entry>
<entry>
<base>WORKSTN_VERIFY</base>
<trans>Verify workstation backup</trans>
</entry>
<entry>
<base>WORKSTN_RESTORE</base>
<trans>Restore from workstation</trans>
</entry>
<entry>
<base>CONFIGURE_WORKSTN_BACKUP</base>
<trans>Configure Workstation Backup</trans>
</entry>
<entry>
<base>ENABLE_DISABLE_WORKSTN</base>
<trans>Enable/Disable Daily Workstation Backup</trans>
</entry>
<entry>
<base>ENABLE_WORKSTN_BACKUP</base>
<trans>Enable Workstation Backup</trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_TIME</base>
<trans>Workstation backup time of day (hour/min)</trans>
</entry>
<entry>
<base>UPDATING_WORKSTN_CONF</base>
<trans>Updating workstation backup configuration</trans>
</entry>
<entry>
<base>SUCCESSFULLY_ENABLED_WORKSTN</base>
<trans>Successfully enabled workstation backups</trans>
</entry>
<entry>
<base>SUCCESSFULLY_DISABLED_WORKSTN</base>
<trans>Successfully disabled workstation backups</trans>
</entry>
<entry>
<base>VERIFY_WORKSTN_BACKUP_FILE</base>
<trans>Verify workstation backup</trans>
</entry>
<entry>
<base>VERIFY_WORKSTN_BACKUP_DESC</base>
<trans>
<![CDATA[
<p>This option will display the names of all files
in a previously created workstation daily backup. You
can use this option to verify the contents of the
backup.<b>You must choose the backup you want to verify</b></p>
<p>Only files flagged with [Saved] are contained in the backup.</p>
<br/>Backup files are verified from shared folder :
]]>
</trans>
</entry>
<entry>
<base>RESTORE_CONF_FROM_WORKSTN</base>
<trans>Restore server configuration from workstation backup</trans>
</entry>
<entry>
<base>RESTORE_CONF_FROM_WORKSTN_DESC</base>
<trans>
<![CDATA[
<p>This process will restore the configuration and user data files from a
Server workstation backup. <b>The restore
should be performed on a freshly installed Server</b>.</p>
<p>Ensure that choose the right backup to restore below
before proceeding.</p>
<p>After the restore completes you must reboot the server.</p>
Backup will be restored from :
]]>
</trans>
</entry>
<entry>
<base>RESTORE_FROM_WORKSTN</base>
<trans>Restore From Workstation</trans>
</entry>
<entry>
<base>RESTORING_FROM_WORKSTN</base>
<trans>Restoring From Workstation</trans>
</entry>
<entry>
<base>NOW_RESTORING_FROM_WORKSTN</base>
<trans>
Your server configuration and user data
files are now being restored from workstation shared folder.
</trans>
</entry>
<entry>
<base>ERR_RESTORING_FROM_WORKSTN</base>
<trans>Error occurred restoring files from workstation.</trans>
</entry>
<entry>
<base>ERR_UPDATING_CONF_AFTER_WORKSTN_RESTORE</base>
<trans>Error occurred while updating system configuration after workstation
restore.
</trans>
</entry>
<entry>
<base>WORKSTN_NAME</base>
<trans>Workstation IP or hostname
</trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_SETTINGS</base>
<trans>Workstation Backup Settings</trans>
</entry>
<entry>
<base>SHARED_FOLDER_NAME</base>
<trans>Backup share
</trans>
</entry>
<entry>
<base>WORKSTN_LOGIN</base>
<trans>Login name
</trans>
</entry>
<entry>
<base>WORKSTATION_BACKUP_DEST</base>
<trans>Backup workstation settings</trans>
</entry>
<entry>
<base>CONFIGURE_WORKSTN_BACKUP_DESC</base>
<trans>You can set the number of
successive backup sets to keep on the workstation, with automatic rotation.
Each set may contain saved data for several consecutive days.
In this case first backup of the set is full backup, others daily backups are
incremental. You can also set a time limit for each backup session or for incremental
backups only. When this limit occurs, backup is cleanly stopped and the next
incremental backup will safely continue with unsaved and modified datas.</trans>
</entry>
<entry>
<base>ERR_INVALID_WORKSTN</base>
<trans>Invalid Workstation IP or Hostname
</trans>
</entry>
<entry>
<base>ERR_INVALID_FOLDER</base>
<trans>Invalid share name
</trans>
</entry>
<entry>
<base>ERR_INVALID_LOGIN</base>
<trans>Invalid Login
</trans>
</entry>
<entry>
<base>ERR_INVALID_PASSWORD</base>
<trans>Invalid Password</trans>
</entry>
<entry>
<base>ERR_ALREADY_MOUNTED</base>
<trans>Backup directory is already mounted</trans>
</entry>
<entry>
<base>ERR_MOUNTING_SMBSHARE</base>
<trans>Unable to mount workstation shared folder</trans>
</entry>
<entry>
<base>ERR_NOT_MOUNTED</base>
<trans>Backup directory is not mounted</trans>
</entry>
<entry>
<base>WORKSTN_NOT_SET</base>
<trans>You must first correctly configure your workstation backup</trans>
</entry>
<entry>
<base>NO_BACKUPS_TO_RESTORE</base>
<trans>There is no backup set on configured workstation shared folder. Verify your configuration settings.</trans>
</entry>
<entry>
<base>NUMBER_OF_SETS</base>
<trans>Number of rotating backup sets</trans>
</entry>
<entry>
<base>NUMBER_OF_FILES_IN_SET</base>
<trans>Daily backups in each set</trans>
</entry>
<entry>
<base>ERR_INVALID_SETS_NUMBER</base>
<trans>Sets number must be 1 or greater</trans>
</entry>
<entry>
<base>ERR_INVALID_FILES_IN_SET_NUMBER</base>
<trans>This number must be 1 or greater. First backup in set is <b>full</b> others are <b>incrementals</b></trans>
</entry>
<entry>
<base>WORKSTN_TIMEOUT</base>
<trans>Optional backup session timeout (hours)</trans>
</entry>
<entry>
<base>INC_ONLY_TIMEOUT</base>
<trans>Don't timeout full backup sessions</trans>
</entry>
<entry>
<base>ERR_INVALID_TIMEOUT</base>
<trans>Maximum backup time must be set between 1 and 24 hours</trans>
</entry>
<entry>
<base>ERR_NO_HOST_DIR</base>
<trans>No directory for your host in shared folder. Maybe your host name is different from backup ones</trans>
</entry>
<entry>
<base>ERROR_READING_FILE</base>
<trans>Error while reading files from</trans>
</entry>
<entry>
<base>WORKSTN_SEL_RESTORE</base>
<trans>Selective file restore from workstation</trans>
</entry>
<entry>
<base>WORKSTN_SELECTIVE_RESTORE</base>
<trans>Workstation selective file restore</trans>
</entry>
<entry>
<base>ALL_BACKUPS</base>
<trans>All backups</trans>
</entry>
<entry>
<base>WORKSTN_SEL_REST_DESC</base>
<trans>
<![CDATA[
This process will restore only specified files and directories. You must first choose
the backup from which the files will be restored. If you don't know in which backup
are the required files, you can select 'All backups' option. <br/><br/>
The next panel will display available files and directories,
so you can choose the ones to restore. To restrict the number of files and directories
displayed in this panel, you have the option to give now a filtering expression,
applied as a regular expression to the displayed names.<br/><br/>
You have the responsibility not to restore files which could break the
functioning of your server.<br/> <br/>Currently, files will be restored from :
]]>
</trans>
</entry>
<entry>
<base>BACKUP_CHOICE</base>
<trans>Selecting files to display</trans>
</entry>
<entry>
<base>SELECT_DATE_BEFORE</base>
<trans>Restore most recent before</trans>
</entry>
<entry>
<base>FILTER_EXPRESSION</base>
<trans>Names filtered by</trans>
</entry>
<entry>
<base>READ_COMPLETE</base>
<trans>
<![CDATA[
You can choose all the directories and files you want to restore in the displayed list
(use ctrl or shift for multiple selection). <br/> <b>Warning :</b> If you select a directory,
all contained files and directories will be restored.<p/>
By default the most recent version of selected files is restored, but if you specify a date
in the format <i>[ [ [yyyy/]mm/]dd-]hh:mm[:ss]</i> the process
will restore only the most recent version modified <b>before the given date</b>.
]]>
</trans>
</entry>
<entry>
<base>ERR_INVALID_SELDATE</base>
<trans>Date format is invalid, must be [ [ [yyyy/]mm/]dd-]hh:mm[:ss]. ie: 2005/12/31-08:23:32 or
10-08:32 or 08:32</trans>
</entry>
<entry>
<base>SELECT_FILES_TO_RESTORE</base>
<trans>Select files to restore</trans>
</entry>
<entry>
<base>ERR_WHILE_UNMOUNTING</base>
<trans>Error occurs when unmounting distant share</trans>
</entry>
<entry>
<base>ERR_DAR_CATALOG</base>
<trans>Error when using Dar catalog</trans>
</entry>
<entry>
<base>COMPRESSION_LEVEL</base>
<trans>Backup compression level [0-9]</trans>
</entry>
<entry>
<base>FULL_ONLY_ON</base>
<trans>Full backup is allowed on</trans>
</entry>
<entry>
<base>ERR_INVALID_COMPRESSION</base>
<trans>Compression level must be set between 0 (no compression) and 9 (maximum compression)</trans>
</entry>
<entry>
<base>DOW</base>
<trans>Sunday Monday Tuesday Wednesday Thursday Friday Saturday Everyday</trans>
</entry>
<entry>
<base>CONFIGURATION_TO_BE_DONE</base>
<trans>Please configure the backup settings.</trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_DESC</base>
<trans>
<![CDATA[
<p>This panel displays the present workstation backup configuration. You can
change it in this panel and the next one.</p><p/>
]]>
</trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_NOT_CONFIGURED</base>
<trans>
<![CDATA[
<p>Presently, workstation backup is not configured. You can set this configuration
with this panel and the next one.</p><p/>
]]>
</trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_ENABLED</base>
<trans>Backup is </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_USB</base>
<trans>Backup is made on local removable disk</trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_MNT</base>
<trans>Backup is made on mounted disk</trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_HOST</base>
<trans>Backup is made on LAN workstation </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_VFSTYPE</base>
<trans> via </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_SHARE</base>
<trans>Destination backup share folder is </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_TOD</base>
<trans>Daily backup occurs at </trans>
</entry>
<entry>
<base>LOGIN</base>
<trans>Login is </trans>
</entry>
<entry>
<base>PASSWORD</base>
<trans>Password is </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_SETSNUM</base>
<trans>Number of rotating backup sets is </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_DAYSINSET</base>
<trans>Number of daily backups contained in each set is </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_COMPRESSION</base>
<trans>Compression level (0-9) of backup is </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_TIMEOUT</base>
<trans>Each daily backup session is cleanly timed out after </trans>
</entry>
<entry>
<base>WORKSTN_BACKUP_INCONLY_TIMEOUT</base>
<trans>except full backups which are cleanly timed out after 24 hours</trans>
</entry>
<entry>
<base>WORKSTN_FULL_BACKUP_EVERYDAY</base>
<trans>Full backup sessions (new backup set) are allowed everyday</trans>
</entry>
<entry>
<base>WORKSTN_FULL_BACKUP_DAY</base>
<trans>Full backup session (new backup sets) is allowed only on</trans>
</entry>
<entry>
<base>WORKSTATION_BACKUP_SETCONF</base>
<trans>Create or modify workstation backup configuration</trans>
</entry>
<entry>
<base>SELECT_VFS_TYPE</base>
<trans>Select the type of share for backup destination</trans>
</entry>
<entry>
<base>ERR_NO_USB_DISK</base>
<trans>Error : No removable disk available. Please connect a removable disk or select another type of workstation backup.</trans>
</entry>
<entry>
<base>ERR_NO_MOUNTED_DISK</base>
<trans>Error : No mounted disk available. Please mount a disk or select another type of workstation backup.</trans>
</entry>
<entry>
<base>HOURS</base>
<trans>hours.</trans>
</entry>
<entry>
<base>ERR_NO_FULL_BACKUP</base>
<trans>Aborting restore because needed full backup is missing or unreadable.</trans>
</entry>
<entry>
<base>ERR_NO_INC_BACKUP</base>
<trans>Aborting restore because the set has missing or unreadable incremental backup number</trans>
</entry>
<entry>
<base>CHECK_TO_VERIFY_FULL_RESTORE</base>
<trans>Check here to test integrity of all backups needed for a full restore with the selected backup </trans>
</entry>
<entry>
<base>TESTING_NEEDED_BACKUPS_FOR_RESTORE</base>
<trans>Testing all backups needed for a full restore with selected backup</trans>
</entry>
<entry>
<base>TESTED_BACKUP</base>
<trans>Testing integrity of backup</trans>
</entry>
<entry>
<base>RESTORE_VERIFY_FAILED</base>
<trans>Verify integrity failed</trans>
</entry>
<entry>
<base>CHECK_INTEGRITY_WARNING</base>
<trans>Warning : For large backups, checking integrity may be a long task and should be made with daily workstation backup disabled.</trans>
</entry>
<entry>
<base>cifs</base>
<trans>cifs</trans>
</entry>
<entry>
<base>nfs</base>
<trans>nfs</trans>
</entry>
<entry>
<base>local removable disk</base>
<trans>Local removable disk</trans>
</entry>
<entry>
<base>Mounted disk</base>
<trans>Mounted disk</trans>
</entry>
<entry>
<base>ERROR_WHEN_TESTING_REMOTE_SERVER</base>
<trans>The parameters have been saved, however the remote host is not reachable, please check your settings.</trans>
</entry>
<entry>
<base>DO_NOT_RESTORE_BIN_SBIN_LIB_LIB64_FROM_SME9</base>
<trans>If you restore from Koozali SME Server 9 or before, pay attention that some folders in the system are now symlinks. Basic backup configuration does not include /bin, /lib, /lib64, /sbin, /var/lock and /var/run. If you have added them for files in their subdirectories, we will prevent the restoration of those folders to prevent dar from replacing those symlinks and leave the system unusable. Those additions are, however, not recommended as they are at risk to overwrite files provides by rpms.</trans>
</entry>
<entry>
<base>SMBV1</base>
<trans>Mount as legacy SMB v1 share (unsecure, not recommended).</trans>
</entry>
</lexicon>

View File

@@ -0,0 +1 @@
PERMS=0600

View File

@@ -0,0 +1,46 @@
{
use POSIX;
use Locale::gettext;
use esmith::I18N;
my $i18n = new esmith::I18N;
$i18n->setLocale('backup');
$OUT = '';
my $status = $backup{status} || 'disabled';
unless ($status eq 'enabled')
{
$OUT .= "# " . gettext("Backup task is disabled");
return;
}
# FIXME - "mt tell" won't work with all backup devices
my $device = $backup{Device} || "/dev/nst0";
my $reminderTime = $backup{reminderTime} || "14:00";
my ($reminderHour, $reminderMin) = split (":", $reminderTime, -1);
my $reminderEmail = $backup{reminderEmail} || 'admin';
# remove leading zeros from minutes
$reminderMin =~ s/00/0/;
$OUT .=
"$reminderMin $reminderHour * * * root"
. " /bin/mt -f $device status 2>&1 | grep ONLINE > /dev/null ||"
. ' echo "' . gettext("Remember to load the backup tape!") . '"'
. ' | mail -s "' . gettext("Remember to load the backup tape!") . '"'
. " $reminderEmail\n";
my $backupTime = $backup{backupTime} || "2:00";
my ($backupHour, $backupMin) = split (":", $backupTime, -1);
# remove leading zeros from minutes
$backupMin =~ s/00/0/;
$OUT .=
"$backupMin $backupHour * * * root"
. " /sbin/e-smith/do_backup"
}

View File

@@ -0,0 +1,30 @@
{
$OUT = '';
my $status = $backupwk{status};
if (defined $status && $status eq 'enabled')
{
# configure backup time and reminder times from the configuration
# database
my $backupMin;
my $backupHour;
my $backupTime = $backupwk{BackupTime} || "1:00";
($backupHour, $backupMin) = split (":", $backupTime, -1);
# remove leading zeros from minutes
$backupMin =~ s/00/0/;
$OUT .="$backupMin $backupHour * * * root"
. " /sbin/e-smith/do_backupwk"
}
else
{
$OUT .= "# Workstation Backup task is disabled";
}
}

View File

@@ -0,0 +1,2 @@
username={$backupwk{'Login'}}
password={$backupwk{'Password'}}

View File

@@ -0,0 +1,6 @@
{
$level = $backupwk{Compression} || 0;
$prog = $backupwk{CompressionProg} || 'gzip';
$OUT = ($level eq '0' or $prog eq 'none') ? "#Compression off" : "--$prog=$level"
}

View File

@@ -0,0 +1 @@
--empty-dir

View File

@@ -0,0 +1 @@
--fs-root /

View File

@@ -0,0 +1,8 @@
{
use esmith::Backup;
my @backup_list = esmith::Backup->restore_list;
foreach my $dir ( @backup_list ) {
$OUT .= "--go-into $dir\n";
}
}

View File

@@ -0,0 +1,7 @@
{
use esmith::Backup;
my @exclusion_list = esmith::Backup->excludes;
foreach my $dir ( @exclusion_list ) {
$OUT .= "--prune $dir\n";
}
}

View File

@@ -0,0 +1,191 @@
{
($backupwk{Compression} || '0') eq '0' ? "#Compression off\n" :
'--exclude-compression "*.0"
--exclude-compression "*.000"
--exclude-compression "*.7z"
--exclude-compression "*.a00"
--exclude-compression "*.a01"
--exclude-compression "*.a02"
--exclude-compression "*.ace"
--exclude-compression "*.ain"
--exclude-compression "*.alz"
--exclude-compression "*.apz"
--exclude-compression "*.ar"
--exclude-compression "*.arc"
--exclude-compression "*.ari"
--exclude-compression "*.arj"
--exclude-compression "*.ark"
--exclude-compression "*.asf"
--exclude-compression "*.avi"
--exclude-compression "*.axx"
--exclude-compression "*.b64"
--exclude-compression "*.ba"
--exclude-compression "*.bh"
--exclude-compression "*.boo"
--exclude-compression "*.bz"
--exclude-compression "*.bz2"
--exclude-compression "*.bzip"
--exclude-compression "*.bzip2"
--exclude-compression "*.c00"
--exclude-compression "*.c01"
--exclude-compression "*.c02"
--exclude-compression "*.car"
--exclude-compression "*.cb7"
--exclude-compression "*.cbr"
--exclude-compression "*.cbt"
--exclude-compression "*.cbz"
--exclude-compression "*.cp9"
--exclude-compression "*.cpgz"
--exclude-compression "*.cpt"
--exclude-compression "*.dar"
--exclude-compression "*.dd"
--exclude-compression "*.deb"
--exclude-compression "*.dgc"
--exclude-compression "*.dist"
--exclude-compression "*.divx"
--exclude-compression "*.ecs"
--exclude-compression "*.efw"
--exclude-compression "*.f"
--exclude-compression "*.fdp"
--exclude-compression "*.flac"
--exclude-compression "*.gca"
--exclude-compression "*.gif"
--exclude-compression "*.gz"
--exclude-compression "*.gzi"
--exclude-compression "*.gzip"
--exclude-compression "*.ha"
--exclude-compression "*.hbc"
--exclude-compression "*.hbc2"
--exclude-compression "*.hbe"
--exclude-compression "*.hki"
--exclude-compression "*.hki1"
--exclude-compression "*.hki2"
--exclude-compression "*.hki3"
--exclude-compression "*.hpk"
--exclude-compression "*.hyp"
--exclude-compression "*.ice"
--exclude-compression "*.ipg"
--exclude-compression "*.ipk"
--exclude-compression "*.ish"
--exclude-compression "*.iso"
--exclude-compression "*.j"
--exclude-compression "*.jgz"
--exclude-compression "*.jic"
--exclude-compression "*.jpeg"
--exclude-compression "*.jpg"
--exclude-compression "*.kgb"
--exclude-compression "*.lbr"
--exclude-compression "*.lemon"
--exclude-compression "*.lha"
--exclude-compression "*.lnx"
--exclude-compression "*.lqr"
--exclude-compression "*.lz"
--exclude-compression "*.lzh"
--exclude-compression "*.lzm"
--exclude-compression "*.lzma"
--exclude-compression "*.lzo"
--exclude-compression "*.lzx"
--exclude-compression "*.md"
--exclude-compression "*.mint"
--exclude-compression "*.mp3"
--exclude-compression "*.mpeg"
--exclude-compression "*.mpg"
--exclude-compression "*.mpkg"
--exclude-compression "*.mzp"
--exclude-compression "*.oga"
--exclude-compression "*.ogg"
--exclude-compression "*.ogv"
--exclude-compression "*.ogx"
--exclude-compression "*.p7m"
--exclude-compression "*.package"
--exclude-compression "*.pae"
--exclude-compression "*.pak"
--exclude-compression "*.paq6"
--exclude-compression "*.paq7"
--exclude-compression "*.paq9"
--exclude-compression "*.par"
--exclude-compression "*.par2"
--exclude-compression "*.pbi"
--exclude-compression "*.pcv"
--exclude-compression "*.pea"
--exclude-compression "*.pf"
--exclude-compression "*.pim"
--exclude-compression "*.pit"
--exclude-compression "*.piz"
--exclude-compression "*.pkg"
--exclude-compression "*.png"
--exclude-compression "*.pup"
--exclude-compression "*.puz"
--exclude-compression "*.pwa"
--exclude-compression "*.qda"
--exclude-compression "*.r00"
--exclude-compression "*.r01"
--exclude-compression "*.r02"
--exclude-compression "*.r03"
--exclude-compression "*.ra"
--exclude-compression "*.rar"
--exclude-compression "*.rev"
--exclude-compression "*.rk"
--exclude-compression "*.rm"
--exclude-compression "*.rnc"
--exclude-compression "*.rp9"
--exclude-compression "*.rpm"
--exclude-compression "*.rte"
--exclude-compression "*.rz"
--exclude-compression "*.rzs"
--exclude-compression "*.s00"
--exclude-compression "*.s01"
--exclude-compression "*.s02"
--exclude-compression "*.s7z"
--exclude-compression "*.sar"
--exclude-compression "*.sdc"
--exclude-compression "*.sdn"
--exclude-compression "*.sea"
--exclude-compression "*.sen"
--exclude-compression "*.sfs"
--exclude-compression "*.sfx"
--exclude-compression "*.shar"
--exclude-compression "*.shk"
--exclude-compression "*.shr"
--exclude-compression "*.sit"
--exclude-compression "*.sitx"
--exclude-compression "*.spt"
--exclude-compression "*.sqx"
--exclude-compression "*.sqz"
--exclude-compression "*.tar"
--exclude-compression "*.tbz"
--exclude-compression "*.tbz2"
--exclude-compression "*.tg"
--exclude-compression "*.tgz"
--exclude-compression "*.tlz"
--exclude-compression "*.tlzma"
--exclude-compression "*.tz"
--exclude-compression "*.uc2"
--exclude-compression "*.uha"
--exclude-compression "*.vem"
--exclude-compression "*.vsi"
--exclude-compression "*.wad"
--exclude-compression "*.war"
--exclude-compression "*.wma"
--exclude-compression "*.wmv"
--exclude-compression "*.wot"
--exclude-compression "*.xef"
--exclude-compression "*.xez"
--exclude-compression "*.xmcdz"
--exclude-compression "*.xpi"
--exclude-compression "*.xx"
--exclude-compression "*.y"
--exclude-compression "*.yz"
--exclude-compression "*.z"
--exclude-compression "*.z01"
--exclude-compression "*.z02"
--exclude-compression "*.z03"
--exclude-compression "*.z04"
--exclude-compression "*.zap"
--exclude-compression "*.zfsendtotarget"
--exclude-compression "*.zip"
--exclude-compression "*.zipx"
--exclude-compression "*.zix"
--exclude-compression "*.zoo"
--exclude-compression "*.zz"'
}

View File

@@ -0,0 +1 @@
--noconf

View File

@@ -0,0 +1 @@
--no-warn

View File

@@ -0,0 +1,3 @@
{
($backupwk{Slice} || '700M') eq '700M' ? "--slice 700M\n" : "--slice $backupwk{Slice}\n"
}

View File

@@ -0,0 +1,4 @@
<Location /server-manager/cgi-bin/backup>
SetEnv force-proxy-request-1.0 1
</Location>

View File

@@ -0,0 +1 @@
1053551285=backup_record|BackupType|desktop|StartEpochTime|1053551285|EndEpochTime|1053551299|Result|0

View File

@@ -0,0 +1,54 @@
root:x:0:root,admin
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
floppy:x:19:
games:x:20:
slocate:x:21:
utmp:x:22:
squid:x:23:
mysql:x:27:
gopher:x:30:
rpm:x:37:
ntp:x:38:
dip:x:40:
apache:x:48:
ftp:x:50:
dns:x:53:
ldap:x:55:
lock:x:54:
vcsa:x:69:
sshd:x:74:
pcap:x:77:
fax:x:78:
nobody:x:99:
users:x:100:
admin:x:101:www
www:x:102:admin
public:x:103:
nofiles:x:400:
qmail:x:401:
qmailscan:x:407:
jabber:x:408:
dnscache:x:410:
dnslog:x:411:
nutups:x:420:
stunnel:x:451:
trend:x:452:
shared:x:500:public,admin,www
imaplog:x:1001:
smelog:x:1002:
cvmlog:x:1003:
spamd:x:1005:
smelastsys:x:2999:

View File

@@ -0,0 +1,58 @@
root:x:0:admin,root
bin:x:1:bin,daemon,root
daemon:x:2:bin,daemon,root
sys:x:3:adm,bin,root
adm:x:4:adm,daemon,root
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
floppy:x:19:
games:x:20:
slocate:x:21:
utmp:x:22:
squid:x:23:
mysql:x:27:
gopher:x:30:
rpm:x:37:
ntp:x:38:
dip:x:40:
apache:x:48:
ftp:x:50:
dns:x:53:
lock:x:54:
ldap:x:55:
vcsa:x:69:
sshd:x:74:
pcap:x:77:
fax:x:78:
nobody:x:99:
users:x:100:
admin:x:101:test,www
www:x:102:admin
public:x:103:
nofiles:x:400:
qmail:x:401:
qmailscan:x:407:
jabber:x:408:
dnscache:x:410:
dnslog:x:411:
nutups:x:420:
stunnel:x:451:
trend:x:452:
shared:x:500:admin,public,test,tester,www
imaplog:x:1001:
smelog:x:1002:
cvmlog:x:1003:
spamd:x:1005:
smelastsys:x:2999:
tester:x:5001:
testgroup:x:5002:admin,www
test:x:5003:
vita-weat$:x:5004:

View File

@@ -0,0 +1,48 @@
root:x:0:root,admin
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
floppy:x:19:
games:x:20:
slocate:x:21:
utmp:x:22:
squid:x:23:
named:x:25:
mysql:x:27:
gopher:x:30:
rpm:x:37:
ntp:x:38:
dip:x:40:
apache:x:48:
ftp:x:50:
dns:x:53:
ldap:x:55:
lock:x:54:
vcsa:x:69:
pcap:x:77:
nobody:x:99:
users:x:100:
admin:x:101:www,test
www:x:102:admin
public:x:103:
nofiles:x:400:
qmail:x:401:
qmailscan:x:407:
trend:x:408:
shared:x:500:public,admin,www,tester,test
nutups:x:420:
tester:x:5001:
testgroup:x:5002:admin,www
test:x:5003:
vita-weat$:x:5004:

View File

@@ -0,0 +1,46 @@
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/var/spool/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
squid:x:23:23::/var/spool/squid:/dev/null
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
rpm:x:37:37::/var/lib/rpm:/bin/bash
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/bin/false
dns:x:53:53:DNS:/home/dns:/bin/false
ldap:x:55:55:LDAP User:/var/lib/ldap:/bin/false
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
fax:x:78:78:mgetty fax spool user:/var/spool/fax:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
www:x:100:101:e-smith web server:/home/e-smith:/bin/false
admin:x:101:101:e-smith administrator:/home/e-smith:/sbin/e-smith/console
public:x:102:103:e-smith guest:/home/e-smith:/bin/false
alias:x:400:400::/var/qmail/alias:/bin/false
qmaild:x:401:400::/var/qmail:/bin/false
qmaill:x:402:400::/var/qmail:/bin/false
qmailp:x:403:400::/var/qmail:/bin/false
qmailq:x:404:401::/var/qmail:/bin/false
qmailr:x:405:401::/var/qmail:/bin/false
qmails:x:406:401::/var/qmail:/bin/false
qmailscan:x:407:407::/var/spool/qmailscan:/bin/false
jabber:x:408:408::/var/spool/jabber:/bin/bash
dnscache:x:410:410:DNScache user:/var/service/dnscache:/bin/false
dnslog:x:411:411:DNScache log user:/var/service/dnscache/log:/bin/false
nutups:x:420:420::/home/nutups:/bin/bash
stunnel:x:451:451:chrooted stunnel user user:/var/log/imap/ssl:/bin/false
trend:x:452:452:trend virus scanner:/home/trend:/bin/bash
imaplog:x:1001:1001:imap output log user:/var/log/imap:/bin/false
smelog:x:1002:1002:smelog log user:/var/log/smelog:/bin/false
cvmlog:x:1003:1003:cvm output log user:/var/log/imap:/bin/false
spamd:x:1005:1005:spamassassin daemon user:/var/service/spamd:/bin/false
smelastsys:x:2999:2999:sme last system user marker:/tmp:/bin/false

View File

@@ -0,0 +1,50 @@
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/var/spool/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
squid:x:23:23::/var/spool/squid:/dev/null
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
rpm:x:37:37::/var/lib/rpm:/bin/bash
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/bin/false
dns:x:53:53:DNS:/home/dns:/bin/false
ldap:x:55:55:LDAP User:/var/lib/ldap:/bin/false
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
fax:x:78:78:mgetty fax spool user:/var/spool/fax:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
www:x:100:101:e-smith web server:/home/e-smith:/bin/false
admin:x:101:101:e-smith administrator:/home/e-smith:/sbin/e-smith/console
public:x:102:103:e-smith guest:/home/e-smith:/bin/false
alias:x:400:400::/var/qmail/alias:/bin/false
qmaild:x:401:400::/var/qmail:/bin/false
qmaill:x:402:400::/var/qmail:/bin/false
qmailp:x:403:400::/var/qmail:/bin/false
qmailq:x:404:401::/var/qmail:/bin/false
qmailr:x:405:401::/var/qmail:/bin/false
qmails:x:406:401::/var/qmail:/bin/false
qmailscan:x:407:407::/var/spool/qmailscan:/bin/false
jabber:x:408:408::/var/spool/jabber:/bin/bash
dnscache:x:410:410:DNScache user:/var/service/dnscache:/bin/false
dnslog:x:411:411:DNScache log user:/var/service/dnscache/log:/bin/false
nutups:x:420:420::/home/nutups:/bin/bash
stunnel:x:451:451:chrooted stunnel user user:/var/log/imap/ssl:/bin/false
trend:x:452:452:trend virus scanner:/home/trend:/bin/bash
imaplog:x:1001:1001:imap output log user:/var/log/imap:/bin/false
smelog:x:1002:1002:smelog log user:/var/log/smelog:/bin/false
cvmlog:x:1003:1003:cvm output log user:/var/log/imap:/bin/false
spamd:x:1005:1005:spamassassin daemon user:/var/service/spamd:/bin/false
smelastsys:x:2999:2999:sme last system user marker:/tmp:/bin/false
tester:x:5001:5001:t t:/home/e-smith/files/users/tester:/bin/sshell
testgroup:x:5002:5002:for testing.:/home/e-smith:/bin/false
test:x:5003:5003:test:/home/e-smith/files/ibays/test/files:/bin/false
vita-weat$:x:5004:5004:Hostname account for vita-weat$:/noexistingpath:/bin/false

View File

@@ -0,0 +1,40 @@
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/var/spool/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
squid:x:23:23::/var/spool/squid:/dev/null
named:x:25:25:Named:/var/named:/bin/false
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
rpm:x:37:37::/var/lib/rpm:/bin/bash
ntp:x:38:38::/etc/ntp:/sbin/nologin
apache:x:48:48:Apache:/var/www:/bin/false
dns:x:53:53:DNS:/home/dns:/bin/false
ldap:x:55:55:LDAP User:/var/lib/ldap:/bin/false
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
www:x:100:101:e-smith web server:/home/e-smith:/bin/false
admin:x:101:101:e-smith administrator:/home/e-smith:/sbin/e-smith/console
public:x:102:103:e-smith guest:/home/e-smith:/bin/false
alias:x:400:400::/var/qmail/alias:/bin/false
qmaild:x:401:400::/var/qmail:/bin/false
qmaill:x:402:400::/var/qmail:/bin/false
qmailp:x:403:400::/var/qmail:/bin/false
qmailq:x:404:401::/var/qmail:/bin/false
qmailr:x:405:401::/var/qmail:/bin/false
qmails:x:406:401::/var/qmail:/bin/false
qmailscan:x:407:407::/var/spool/qmailscan:/bin/false
trend:x:408:408:trend virus scanner:/home/trend:/bin/bash
nutups:x:420:420::/home/nutups:/bin/bash
tester:x:5001:5001:t t:/home/e-smith/files/users/tester:/bin/sshell
testgroup:x:5002:5002:for testing.:/home/e-smith:/bin/false
test:x:5003:5003:test:/home/e-smith/files/ibays/test/files:/bin/false
vita-weat$:x:5004:5004:Hostname account for vita-weat$:/noexistingpath:/bin/false

File diff suppressed because it is too large Load Diff