Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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]: be your path light Pirsig
[Corion]: Hi Discipulus!
[Discipulus]: your chautauqua was important for me
[Discipulus]: Hi Corion here is holiday: the best we have Liberation Day
[Discipulus]: waiting sons to finish home assignments and we go out to some park

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-04-25 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (449 votes). Check out past polls.