Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
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.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.