LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-17-2005, 08:17 AM   #1
Mikey_GoEagles
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Question What is the best way to do a scripted, cronjob, backup?


Can anyone help me with the most preferred way to do backups in Linux? I am using RedHat 9, and need to script my backup to DDS3 tape. I know that some use "dump" and "restore", some other methods are "find using cpio", and another method is using "tar". What is the best way to do a scripted, cronjob, backup? And do you have a sample script that I can learn from? I am new to the Lenux world and use fbackup in HP-UNIX which works well and I would like to have something that works as well for my Linux servers.
------------------------------------------
This is what I presently use:
BCAT=/tmp/backupcat.log

echo 'date' Starting backup to tape >> $BCAT

dump 0f /dev/st0 / >> $BCAT
dump 0f /dev/nst0 /home >> $BCAT
dump 0f /dev/nst0 /tmp/mytest.txt >> $BCAT
#Does dump do Individual files and sub directories?

echo 'date' Completed backup to tape >> $BCAT
--------------------------------------------
The only thing being written to the log file is the echo string and I am not sure that this is the best backup for me. Suggestions?
 
Old 11-18-2005, 02:34 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
For backups, I prefer DAR . It takes a bit of study and trial to get it working the way you want it to work. There is an excellent tutorial included in the package.

You can direct Dar to write the backup to any kind of storage media. You can make full and differential backups.

One of the best features is that each file is backed up individually, unlike tar. So, if a file in the archive is corrupted somehow, you risk only that one file; not the entire archive.

Restore is quite easily done.

Dar is a command-line, scripted utility. The GUI frontend to Dar is kdar. I've used both with good results.

It also lends itself well to cron scheduling.

Last edited by bigrigdriver; 11-18-2005 at 02:36 AM.
 
Old 11-18-2005, 02:34 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
For backups, I prefer DAR . It takes a bit of study and trial to get it working the way you want it to work. There is an excellent tutorial included in the package.

You can direct Dar to write the backup to any kind of storage media. You can make full and differential backups.

One of the best features is that each file is backed up individually, unlike tar. So, if a file in the archive is corrupted somehow, you risk only that one file; not the entire archive.

Restore is quite easily done.

Dar is a command-line, scripted utility. The GUI frontend to Dar is kdar. I've used both with good results.
 
Old 12-02-2005, 09:35 AM   #4
Mikey_GoEagles
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks a lot for your reply. I was just looking at simplebackup, as my manager suggested it to me. However, I will also take a look at Dar and KDar.
Thanks again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripted email doctorwebbox Linux - Software 12 05-19-2005 08:40 AM
Disabling Window Decoration on Scripted Programs Nodge Linux - General 1 02-15-2005 08:25 AM
Scripted Install donaldsolberg Mandriva 1 10-15-2004 08:50 AM
scripted job to send mail MidnighToker Slackware 7 02-17-2004 07:39 AM
ifconfig and dhcpcd - scripted papasasha Linux - Networking 4 03-29-2002 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration