Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Delete all but the most recent backup file

by soonix (Prior)
on Jan 27, 2013 at 20:05 UTC ( #1015588=note: print w/replies, xml ) Need Help??


in reply to Re^2: Delete all but the most recent backup file
in thread Delete all but the most recent backup file

I guess you'd have to replace the line
map { my ( $d, $m, $y ) = /(\d+)/g; [ $_, "$y$m$d" ] }
by something like
map {[$_, -M $_]}
However, currently I'm not often using these functions, so of course you should test it first, not that you end up keeping the oldest instead of the newest backup...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015588]
help
Chatterbox?
[Discipulus]: here spring has sprung, so the warm is available without holidays..
[Discipulus]: Oh I got a (small but better than nothing) salary increase!! beer for all!
[cavac]: Not sure if it's only my connection, but pause.cpan.org seems rather slow to respond today.
[cavac]: Could some of you just log in for a second and check, for example, the tail daemon logfile?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-02-22 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (325 votes). Check out past polls.