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
Doctor Feelgood
Administrator


PostPosted: Tue, 07 Dec 2004 21:15:28    Post Subject: Linux Help... Cron Jobs Reply with quote

I am trying to setup automated backups of the site from the active hard drive to a backup drive I have installed.

It is currently doing it, but only creates three files... One that it over writes every night during a backup, one on a weekly basis, and one on a monthly basis.

I'd rather not lose the daily one so quickly, and would prefer to have a whole weeks worth of daily backups available. Currently I also make manual daily backups to my home machine, but would rather it all be automated, and online.

First... Help me understand the commands to make a gzip archive at the command line... Something like:

Quote:
tar c dir/ | gzip > dir.tar.gz


right? (please correct me).

how about to switch drives, using a symlink I have created? something like, for example:

Quote:
tar c home/dir/ | gzip > disk2/archive/dir.tar.gz


Confused

Now, once you have corrected my stuff above, how can I go about making it keep the last few backups like this?

Thanks Linux gurus! Sun


Last edited by Doctor Feelgood on Tue, 07 Dec 2004 21:37:24; edited 1 time in total
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