LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-27-2009, 03:51 AM   #1
rastellig
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Rep: Reputation: 0
Question about backup


I must to change any settings in a backup schedule, because I have notice that this task doesn't not make any compression (35GB)

Actually command is something like
star -l [some parameters] -v f=$DEVICE -C /home $DIRS

I think that I need to add a gzip pipe
star -l [some parameters] -v f=$DEVICE -C /home $DIRS | gzip
but I think that it needs some additionals parameters - any helps? I look into man pages of star, but it's very cryptic. There are some switch -z, -j, but I can't find any example...


Could you help me ??

Please have patience - I'm a newbie

Thanks a lot
Giovanni Rastelli
 
Old 01-27-2009, 09:13 PM   #2
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
I think the problem you might be having is with

Code:
f=$DEVICE
Is $DEVICE a tape drive?

If so the star man page has an example on how to star, gzip, and send the output to a tape:

Code:
star -c . | gzip | sdd ibs=4k obs=32k -fill of=/dev/rmt/1bn
So you would basically do what you're currently doing, but just not use f=$DEVICE in star:

Code:
star -l [some parameters] -v -C /home $DIRS | gzip | sdd ibs=4k obs=32k -fill of=$DEVICE
This also assumes that "sdd" is installed on this server. If not, "sdd" is a modified version of "dd" so "dd" might work just as well.

If you were sending the output to a file rather than a device, star would look like this:

Code:
star -czf output.tar.gz -C /home $DIRS
or

Code:
star -l [some parameters] -v -C /home $DIRS | gzip -c > output.tar.gz
I hope that makes sense...
 
Old 01-28-2009, 03:38 AM   #3
rastellig
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the answer.
Backup is sent to a tape device.

I will try...

Giovanni Rastelli
 
Old 01-28-2009, 09:46 AM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
What sort of tape device? Does it have compression?
 
Old 01-29-2009, 03:02 AM   #5
rastellig
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I have a HP C7438A - Storage DAT 72
I think that have compression (I can't find page with details)

The person who create this backup script (another IT company) has insert this line in the script
mt -f $DEVICE compression on 2> /dev/null

so I think that this device must to compress data

For your information I send you log backup

Quote:
star: No space left on device. Error writing '/dev/st0'.
star: fifo had 242571 puts 3654943 gets.
star: fifo was 4 times empty and 11110 times full.
star: fifo held 8386560 bytes max, size was 8396800 bytes
star: 3654943 blocks + 0 bytes (total of 37426616320 bytes = 36549430.00k).
star exit code: 28
 
Old 01-29-2009, 05:42 PM   #6
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
DAT72 -- so, you should get 36G on the tape without compression if things are running smoothly. With compression on, depending on your data types and their compressibility, you could get up to 2:1 compression; though, in practice, that's optimistic at best.

How much data are you sending? If you look at your /var/log/messages, do you see any errors that might relate to the tape drive? When was the last time a cleaning tape was used on the drive? If you have some disk space available for testing, try doing the tar to a disk file and then try gzipping it. That would tell you at least what you are dealing with in terms of size and compressibility of the data. You can also get information on available space with `df -k` and on the space used by what you are trying to backup with `du -ks $DIR`.

Finally, it's possible it is working as it should and you just have too much data to fit on the tape. Break up the backups to more than one tape.
 
Old 02-05-2009, 10:11 AM   #7
rastellig
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
And for restore from backup should I run something like

Quote:
star -x [some parameters] /tmp 'path/folder_to_restore' | gzip -d | sdd ibs=4k obs=32k -fill of=$DEVICE
Confirm?


Giorasta
 
Old 02-06-2009, 08:47 AM   #8
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
just a quick comment that you have all your pipes running backwards. You want to pull the data off the tape, pipe the output to gzip, and then pipe that output to star.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup question numtre Linux - Software 6 01-07-2009 06:24 PM
backup question blockme Debian 3 05-28-2004 07:08 PM
Backup question TomH37 Linux - Software 1 05-24-2004 06:32 PM
Backup Question tuxedo-notebook Linux - General 5 04-16-2004 11:26 AM
Backup question chuck77 Linux - General 1 03-21-2002 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:42 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