Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Making Of A Backup Script
post Nov 23 2004, 07:46 AM
Post #1

Its GNU/

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069


I'm creating a backup script here and have some little problems.

my script looks like this ('s longer)


renice -10 -p $
mkdir /share3/backup

mkdir /share3/n-tibor
mount -t smbfs -o guest //n-tibor/My' 'Documents /share3/n-tibor
cp -au /share3/n-tibor /share3/backup
umount /share3/n-tibor
rmdir /share3/n-tibor

this works ok, it copies everything from those share to the local backup folder...and later it only copies the files that are missing or changed.

the problem part is this...and I cant seem to solve it for some reason

when I did tar -jcf /share3/backupDVD/backup-gepek.tar.bzip /share3/backup it was ok in size
when I did tar -cZf /share3/backupDVD/backup-gepek.tgz /share3/backup was to big

what I would like to do is the following archive those files in such a way that they are compressed and can be uncompressed with a windows based computer if necesary...

also how do you use that -g or -G switch?

I would like the program to only modify the changed part of the archive not create it again and again.

Thank you

Robert B

Robert Becskei
May the source be with us!
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
Go to the top of the page
+Quote Post
post Nov 23 2004, 10:53 AM
Post #2

RMS is my Hero

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5

the -j, --bzip2 filter the archive through bzip2
the -Z, --compress, --uncompress filter the archive through compress

i believe the -j option compresses the data more than 'compress' does

how i usually create tar files is running it through the gzip compression using the -z option
or you can just

tar the file using the -cvf flags

then run the file through the gzip program with either the --fast or --best flags


Chris W.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 17th March 2018 - 07:53 AM