Jump to content

SH: Delete files older than 7 days

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
17 replies to this topic

#1
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Here is a simple script, as requested, that deletes files in a directory older than 7 days. This is good to use in conjunction with a backup script of some sort.

To use, change /dir to the directory you want and add to a cron job or execute manually.

Attached Files



#2
diabl0

diabl0

    Newbie

  • Members
  • Pip
  • 1 posts
Thanks a lot... This is what i was looking for.

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
No problem, if you have any questions about it feel free to ask.

#4
tomato_tan

tomato_tan

    Newbie

  • Members
  • Pip
  • 1 posts
Thanks a lot bro :)

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
No Problem.

#6
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
Nice Script, I may be implementing it soon on one of my servers :)

#7
Guest_Jordan_*

Guest_Jordan_*
  • Guests
It might come in handy for you to use. If you need any help just let me know.

#8
deepblue

deepblue

    Newbie

  • Members
  • Pip
  • 1 posts
Thanks bro

#9
bro

bro

    Newbie

  • Members
  • Pip
  • 1 posts
awesome, thanks

#10
Alx

Alx

    Newbie

  • Members
  • Pip
  • 1 posts
Nice script

#11
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
very nice
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#12
shivkumar

shivkumar

    Newbie

  • Members
  • Pip
  • 1 posts
good work