Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 19:53:49 -0500
From:      Nathan Mace <nmace85@yahoo.com>
To:        freebsd-chat@freebsd.org
Subject:   backups of log files
Message-ID:  <200203130057.TAA27975@uce55.uchaswv.edu>

next in thread | raw e-mail | index | archive | help
just wondering how you guys make backups of your log file(or even if you do). 
 how do you do it? i assume you have a cron job that does it every so often.  
i'm trying to write my 1st *USEFUL* perl program, and i want it to take a 
directory of log files and create a .tar file of them in another directory.  
it does that just fine.  the problem is that the next time it does it, it 
overrides the 1st backup, so how can i get it name them backup1.tar or name 
them after the date like 1102.tar for january 1st 2002??  conceptually i can 
list lots of ways to do this, but i guess what i'm asking for is sample perl 
code.  i can't seem to find anything that does this in the usual places i 
look.  thanks

Nathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203130057.TAA27975>