Bigbruin.com
Home :: Reviews & Articles ::
Forum :: Info :: :: Facebook :: Youtube :: RSS Feed
Search  :: Register :: Log in
View Single Post  Topic: Linux Help... Cron Jobs 
Author Message
misty
Rated XXX


PostPosted: Wed, 08 Dec 2004 14:40:22    Post Subject: Reply with quote

You could always create a script that would append the date to the file name, something like.

#!/bin/ksh (where ever ksh is located)

FILENAME=dir.tar.`date +%m%d%Y`.gz

tar c dir/ | gzip > $FILENAME



I don't know much about gzip, so I can't tell you whether the syntax is right. I would set up one cron jobs to run daily using the script above so each job would have a different name. Then maybe also run a cleanup jobs that would find files older than 7 days and delete them.
_________________
Meg: Everybody! Guess what I am?
Stewie: Hm, the end result of a drunken back-seat grope-fest and a broken prophylactic?

Stewie: I was under the impression the name of the show was "Kids Say the Darndest Things," not "Old Black Comedians Never Shut the Hell Up."
View user's profile Send private message Visit poster's website

Contact Us :: On Facebook :: On Youtube :: Newsletter :: RSS Feed :: FAQ :: Links :: Sponsors :: Privacy Policy
Copyright © 2000 - 2023 Bigbruin.com - All rights reserved