View previous topic :: View next topic |
Author |
Message |
Doctor Feelgood Arrrrghh!

Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Tue, 07 Dec 2004 21:15:28 Post Subject: Linux Help... Cron Jobs |
|
|
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 |
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! 
Last edited by Doctor Feelgood on Tue, 07 Dec 2004 21:37:24; edited 1 time in total |
|
Back to top |
|
 |
Little Bruin
Boo Boo
Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket |
|
 |
IceNine *The Freshest*

Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Tue, 07 Dec 2004 21:19:28 Post Subject: |
|
|
You'll need a shell script that analyzes the dates for you. I would recommend having the date in the title - it keeps it simple that way. I'll see what I can come up with after I get home. _________________
A letter to a soldier |
|
Back to top |
|
 |
Doctor Feelgood Arrrrghh!

Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
|
Back to top |
|
 |
BeerCheeze *hick*

Joined: 14 Jun 2003 Posts: 9285 Location: At the Bar
|
Posted: Tue, 07 Dec 2004 21:34:10 Post Subject: |
|
|
I'll show this to Misty, she does this stuff all the time. |
|
Back to top |
|
 |
misty Mmmmm... Beer

Joined: 17 Jul 2003 Posts: 737 Location: In Dr. EvilCheeze's pants
|
|
Back to top |
|
 |
misty Mmmmm... Beer

Joined: 17 Jul 2003 Posts: 737 Location: In Dr. EvilCheeze's pants
|
|
Back to top |
|
 |
misty Mmmmm... Beer

Joined: 17 Jul 2003 Posts: 737 Location: In Dr. EvilCheeze's pants
|
|
Back to top |
|
 |
Little Bruin
Boo Boo
Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket |
|
 |
Doctor Feelgood Arrrrghh!

Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Wed, 08 Dec 2004 16:05:47 Post Subject: |
|
|
Whoa... Thanks! I'll try something once I process all of that!  |
|
Back to top |
|
 |
BeerCheeze *hick*

Joined: 14 Jun 2003 Posts: 9285 Location: At the Bar
|
Posted: Wed, 08 Dec 2004 18:20:44 Post Subject: |
|
|
Great huh? I'm married to a Unix geek...  |
|
Back to top |
|
 |
Doctor Feelgood Arrrrghh!

Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Wed, 08 Dec 2004 19:26:06 Post Subject: |
|
|
I think I got it. I set up one to take just the public_html area of the site and gzip over onto the second drive at 5 PM on Wednesdays only.
Just got home and see I have a 160MB file with the proper name right where I wanted it!
Thanks! |
|
Back to top |
|
 |
|