LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2004, 04:05 AM   #1
FiSH42
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
Need to write a rolling back-up script


Hi all,

Firstly I have to admit I'm fairly new to the world of linux, however I need to write a script, that will keep a rolling back-up of files uploaded to it, for example,

a file is uploaded every week with a date/time stamp, they will all be stored in the same directory on the web server, but the script needs to remove the file when it gets past 10 weeks old.

Thanks in advance for any help you can give,

Cheers

FiSH
 
Old 02-18-2004, 05:19 AM   #2
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
check out man logrotate - this can be used for any file (at least i'm sure you can)...
 
Old 02-18-2004, 06:20 AM   #3
PSIplus
Member
 
Registered: Feb 2004
Location: Vienna/Austria
Distribution: Debian Unstable
Posts: 36

Rep: Reputation: 15
logrotate is a good solution, but afbackup may be usefull too
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
turning on dma and write back cache on SATA? niverson Linux - Hardware 16 02-15-2006 12:42 AM
rolling back xforms install corbis_demon Linux - Newbie 2 07-27-2004 03:41 AM
rolling back install corbis_demon Linux - Newbie 1 07-27-2004 03:14 AM
Help rolling back dselect selections anonc Debian 1 01-23-2004 04:09 PM
CVS: rolling back? mikeshn Linux - Software 2 10-21-2003 01:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration