From owner-freebsd-chat Tue Mar 12 16:53:45 2002 Delivered-To: freebsd-chat@freebsd.org Received: from uce55.uchaswv.edu (uce55.uchaswv.edu [12.4.161.9]) by hub.freebsd.org (Postfix) with ESMTP id 4026937B41C for ; Tue, 12 Mar 2002 16:53:43 -0800 (PST) Received: from there ([172.16.32.103]) by uce55.uchaswv.edu (8.9.3 (PHNE_22672)/8.9.3) with SMTP id TAA27975 for ; Tue, 12 Mar 2002 19:57:58 -0500 (EST) Message-Id: <200203130057.TAA27975@uce55.uchaswv.edu> Content-Type: text/plain; charset="iso-8859-1" From: Nathan Mace To: freebsd-chat@freebsd.org Subject: backups of log files Date: Tue, 12 Mar 2002 19:53:49 -0500 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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