6.5 backup to HD

Michael Meens mmeens at mesastate.edu
Thu Sep 24 22:14:33 BST 2009


Sure. I'm using Perl 5.8.8 on the server which runs the backups (Gentoo Linux),
and had to modify one of the standard Rsync files, in my case,
/usr/lib/perl5/site_perl/5.8.8/i686-linux/File/RsyncP.pm . I don't believe I
made any changes to BackupPC's code.

The original file has a statement:

    if ( $line !~ /\@RSYNCD:\s*(\d+)/ ) {
        return "unexpected response $line\n";
    }

But, the version of Rsync I was using for NetWare doesn't respond with
"@RSYNCD:", it sends "This is the Netware(r) port of Rsync 2.6.0.", which causes
RsyncP to abort and return "unexpected response", and BackupPC gives up.

My work-around was to simply munch Novell's welcome message, and commented out
the 'unexpected response' check:

    $line='1';
    my $mmmdbg='';
    my $res;
    while($line)
    {
        $line = $rs->getLine;
        alarm(0) if ( $rs->{timeout} );
        $mmmdbg .= $line.'.';

        if ($line eq 'This is the Netware(r) port of Rsync 2.6.0.') {next;}
        if ($line eq 'Copyright (C) Andrew Tridgell, Paul Mackerras, Martin
Pool') {next;}
        if ($line eq 'Copyright (C) 1989, 1991 Free Software Foundation, Inc.')
{next;}
        if ($line eq 'Modifications for Novell(r) Netware(r) Copyright (c) 2002
Lee Wiltbank') {next;}
        if ($line eq '675 Mass Ave, Cambridge, MA 02139, USA') {next;}
        if ($line eq 'Welcome.') {next;}
        if ($line !~ /\@/) {$line='+';next;}
        last;

        #if ( $line !~ /\@RSYNCD:\s*(\d+)/ ) {
        #        return "dbg3: unexpected response $line\n";
        #        #print "dbg2: unexpected response $line\n";
        #}
        #else
        #{
        #        $res=$1;
        #        last;
        #}
    }

I've attached the file I'm using. I'm sure there are much more elegant
solutions, but once I worked around the issue on my system, I moved on. I
haven't tested this with any other versions of Rsync on NetWare or perl.

I'd clean up the file a bit if I was still using this on NetWare, but this
system has moved onto OES2, so I'm afraid to make any changes without testing.

Mike

>>> On Thu, Sep 24, 2009 at  2:14 PM, in message
<4ABB70A302000024000460BF at lola.vvc.edu>, "Brian Hatchell"
<Hatchellb at vvc.edu> wrote:

Can I see the PERL script?

Brian Hatchell
Network Manager
Victor Valley College
760 245-4271 x2792

For a successful technology, reality must take precedence over public
relations, for Nature cannot be fooled *Richard P. Feynman


Twitter:@vvcit or http://twitter.com/vvcit
Check my Blog at
http://gwcal.vvc.edu/mplusextranet/scp.dll/blog?user=hatchellb


>>> On 9/24/2009 at 1:00 PM, in message
<4ABB7B8C.3CF9.008D.0 at mesastate.edu>, "Michael Meens"
<mmeens at mesastate.edu> wrote:

I use the open-source BackupPC http://backuppc.sourceforge.net/ for my
home backups, and for one small production server across the WAN at
work. It uses rsync to transfer files, and uses hard links to handle
primitive file-level de-duplication. Even with one server and little
duplicate data, it makes a big difference because I can maintain 9 full
backups, and 14 incrementals, without using much more space disk space
than 1 full backup.

The main advantage of this over straight rsync is the ability to
recover older versions of files at a later time. It has a web interface
that allows you to view all of the versions of files on backup, and
recover whichever one you want.

There are some disadvantages as well. I had to make one change to a
perl script to back up NetWare servers (I can get that change to you if
you want to try it out), because NetWare's rsync gives an unexpected
response when it first connects. You'll also need to set up a cron job
to back up trustee assignments, eDirectory, and GroupWise separately.
Finally, I've never tried to use a NetWare server to host the backup
software... it's really designed to run from a Linux system, which is
how I run it.

The NetWare server has since been upgraded to OES2, and I back it up
with BackupPC as well.

Mike Meens
Mesa State College

>>> On Wed, Sep 23, 2009 at  8:13 AM, in message
<4AB9F52F.C4E4.0040.0 at davenport.edu>, "Steven Tharp"
<Steven.Tharp at davenport.edu> wrote:

Like and use Rsync not for this exact use but a similar purpose. Lack
some of the reporting and open file management that fancy backup
programs give you but still a good alternative.

Steven Tharp

>>> "Greg Beckmeyer" <gbeckmeyer at acgih.org> 9/23/2009 10:03 AM >>>
Have a netware 6.5 SBS server with a failing tape drive.  I've already
bought a couple sata drives and enclosures to investigate going that
route with backups instead of forking out $1000+ for another tape
drive
that will likely fail again in a few years.  Very small environment,
just the single server with a 400Gb raid5 array to backup.  Our
version
of BackupExec doesn't support backup to disk, so I've considered and
need to test rsync and Yosemite backup, and just realized Portlock
might
be another possible option if its possible to restore individual files
and not just an entire image.  Running Groupwise too, but currently
using dbcopy to get a backup on disk and excluding the live domain/po
from the nightly tape backup so I'm assuming any of these options will
work the same.

Just looking for input from anyone currently using any of these
options
(or others, on an extremely low budget) for disk to disk backup.

Thanks,
Greg Beckmeyer

_______________________________________________
Novell mailing list
Novell at netlab1.oucs.ox.ac.uk
http://netlab1.usu.edu/mailman/listinfo/novell
_______________________________________________
Novell mailing list
Novell at netlab1.oucs.ox.ac.uk
http://netlab1.usu.edu/mailman/listinfo/novell

_______________________________________________
Novell mailing list
Novell at netlab1.oucs.ox.ac.uk
http://netlab1.usu.edu/mailman/listinfo/novell



More information about the Novell mailing list