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