Ask a Question related to PERL Beginners, Design and Development.
-
Ned Cunningham #1
Backup scheme
Hi,
I have a script that runs and zips a file, then copies it to another directory on another system.
It also goes through and renames each file so that it keeps 14 files. The script I am using is just using system renames and I would like to truly do this in Perl.
So I have started new.
Heres what I have so far.....
Snip
Use File::Copy;
Foreach $dfile (glob("c:/ned/ned/*back.zip")) {
$numcount=substr($dfile,-11,3);
++$numcount;
$ddfile = $numcount . substr($dfile,-8);
copy("$dfile", "$ddfile") or warn;
}
I would like to increment each file as it gets a day older, then tuning the oldest file into a weekly file, the above does not work.
Any ideas to get me on a BETTER path.
Thankx
Ned Cunningham
POS Systems Development
Monro Muffler Brake
200 Holleder Parkway
Rochester, NY 14615
(585) 647-6400 ext. 310
[email]ned.cunningham@monro.com[/email]
Ned Cunningham Guest
-
authentication/login scheme
I am a developer, not an administrator and want to ask you guys for advice on designing a login/authentication scheme for a new .Net C# product. ... -
The new allocation scheme and extensions
In 1.6, when writing an extension which required Data_Wrap_Struct, the programmer would define the singleton method "new" to handle that. In 1.8,... -
Is this IPC scheme brain-dead?
I'm designing an IPC scheme that I've never used before, and I need to vet it. I don't have any local resources to run it by, and would appreciate... -
Reasonable partition scheme
I just bought a 120 GB HDD as a replacement. I now have a 20Gb Quantum Fireball with a fast access time and a 120GB Samsung with slower access time.... -
loop - begin backup, end backup Oracle 8.1.7
Hello, we have the problem named after: last weekend (22.12.2002), we did a reorganisation of a tablespace with the tool "sapdba" from SAP.... -
Kevin Old #2
Re: Backup scheme
Ned,
Here's a great script I use that is written in Perl. Might be a good
starting point or might save you a ton of work.
[url]http://freshmeat.net/redir/ibackup/44196/url_homepage/ibackup[/url]
HTH,
Kevin
On Thu, 2004-01-22 at 12:18, Ned Cunningham wrote:[email]ned.cunningham@monro.com[/email]> Hi,
>
> I have a script that runs and zips a file, then copies it to another directory on another system.
> It also goes through and renames each file so that it keeps 14 files. The script I am using is just using system renames and I would like to truly do this in Perl.
>
> So I have started new.
>
> Heres what I have so far.....
>
> Snip
> Use File::Copy;
> Foreach $dfile (glob("c:/ned/ned/*back.zip")) {
> $numcount=substr($dfile,-11,3);
> ++$numcount;
> $ddfile = $numcount . substr($dfile,-8);
> copy("$dfile", "$ddfile") or warn;
> }
>
> I would like to increment each file as it gets a day older, then tuning the oldest file into a weekly file, the above does not work.
>
> Any ideas to get me on a BETTER path.
>
> Thankx
>
> Ned Cunningham
> POS Systems Development
> Monro Muffler Brake
> 200 Holleder Parkway
> Rochester, NY 14615
> (585) 647-6400 ext. 310
--
Kevin Old <kold@kold.homelinux.com>
Kevin Old Guest



Reply With Quote

