in reply to Network backup thing
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 | |
by DrZaius (Monk) on May 13, 2001 at 21:42 UTC | |
by Beatnik (Parson) on May 13, 2001 at 21:45 UTC |