LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2003, 11:49 AM   #1
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Rep: Reputation: 15
Need backup help....


Ok, I know one of you experts can help me out with this easy question....I backup our Linux server nightly, utilizing a simple script as a cron job. First I'll post the script, then the disk layout. My question is:
I just want to verify that everything is working correctly, but when I look at the log, the size is 38091850.....when looking at the disk configuration, I can't see how it gets this number. The script simply tars everything, excluding 4 or 5 filesystems. See if you can help me out please. Or, if there's an easy way to verify backups, please let me know!

Here's my script:

# $Header$
#
LOG=/var/log/backup.log
touch $LOG
echo -e "****Backup started: \c" >>$LOG
date >>$LOG
#
mt -f /dev/st0 rewind
mt -t /dev/st0 erase
#
cd /
#
DATE=`date -I`
touch /root/complete.$DATE
tar cvf /dev/st0 * --exclude data1 --exclude data2 --exclude data3 --exclude data4 --exclude proc > /root/complete.$DATE
#
#
# Update log
#
echo -e "****Backup ended: \c" >>$LOG
date >>$LOG

-----------------------------------------------------------------------------------------

Now, here's my filesystem setup....

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda5 20058176 10899556 8139700 58% /
/dev/sda1 93309 13799 74693 16% /boot
/dev/sda7 75117788 54387824 16914128 77% /data1
/dev/sdc5 114295692 90754956 17734848 84% /data2
/dev/sdd5 111196296 12675596 92872248 13% /data3
/dev/sdb6 74754464 17189600 53767504 25% /data4
/dev/sda6 20058176 489420 18549836 3% /opt
none 515528 0 515528 0% /dev/shm
/dev/sdd1 4134900 33052 3891800 1% /tmp
/dev/sdb5 39539116 16376768 21153824 44% /var

Thanks very much for any help.



 
Old 10-10-2003, 06:20 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
You are never zapping the log and starting over. You log is expanding in size every time you run a backup. Try changing:

echo -e "****Backup started: \c" >>$LOG

to:

echo -e "****Backup started: \c" >$LOG

Then the log will only show the latest backup.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backup help sridhar11 Debian 1 08-30-2005 11:40 AM
backup LuckyABA Linux - Software 1 01-22-2005 01:51 PM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 07:42 PM
Selective backup to CDRW, or other backup methods. trekk Linux - Software 1 11-03-2003 03:46 PM
backup and update the backup file doris Linux - General 4 08-24-2002 08:26 PM


All times are GMT -5. The time now is 05:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration