Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Network backup thing

by DrZaius (Monk)
on May 13, 2001 at 21:16 UTC ( [id://80062]=note: print w/replies, xml ) Need Help??


in reply to Network backup thing

Looking at this code makes me think life would be good with URI::SMB. This particular script would loose the
my $samba_user = ""; my $samba_password = ""; my $samba_remote_host = ""; my $samba_share = ""; my $samba_current_host = ""; #Samba Remote share subdir #Empty means root share #Could be combined with $ENV{HOSTNAME}

part. I would then use Getopts::Long to change the interface to something like:

$0 --(daily|weekly|hourly|etc) --smb=smb://user:pass@host/share

If --smb was not set, it could check the env before dieing.

And it would be really helpful if Filesys::SmbClientParser accepted one of these.

Have you thought about use URI's for your db file? That way you can back up not just local files, but files on other smb hosts, webpages, ftp files or hunks of ldap. Well, anything that uri supports and has a client for.

Replies are listed 'Best First'.
Re: Re: Network backup thing
by Beatnik (Parson) on May 13, 2001 at 21:23 UTC
    Well uhm, TIMTOWTDI
    If the SMB connection (or network connection in general) would fail, there would still be a backup :)
    As a sidenote, I wasn't able to locate URI::SMB on CPAN, nor as Google search result... Is it some dark and well hidden module?

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.
      Actually, URI::SMB does not exsit, but life would definetly be good if it existed. I've seen a lot of code that could use it, but haven't actually written any yet.

      I haven't had the itch yet, but as my sysadmin days continue, I'm sure it will happen sooner or later.

        That's like use World::Peace... it doesn't exist yet, the world would be a better place if it did, and somebody, hopefully, will get around to accomplishing it :)

        Greetz
        Beatnik
        ... Quidquid perl dictum sit, altum viditur.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://80062]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found