OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: daniel3000 on June 22, 2005, 05:22:01 pm

Title: Tar -x Doesn't Work
Post by: daniel3000 on June 22, 2005, 05:22:01 pm
Hello,

I wanted to write a backup script. It should for now only backup the contents of /hdd3/Documents of my SL-C3000 hard drive to an SD card, but excluding the directories "Movie_Files", "Music_Files" and "Install_Files".

So I wanted to use the tar command

tar -cf /mnt/card/backup/hdd3_Documents.tgz -X/hdd3/Documents/nobackup /hdd3/Documents

and the file nobackup contains

/hdd3/Documents/Movie_Files/*
/hdd3/Documents/Music_Files/*
/hdd3/Documents/Install_Files/*


But the command backs up everything. Seems as if the nobackup contents are ignored.

Can anyone advise me what I'm doing wrong?
I recall having used tar this way some years ago to back up my Linux PC and the busybox tar version's online help lists the X parameter, too.

Thanks

daniel
Title: Tar -x Doesn't Work
Post by: Stubear on June 22, 2005, 09:12:56 pm
Download and install the gtar package, it's a real tar and not just a busybox module.

The tar busybox module that ships with Sharp ROM doesn't have half the options of the real gnu tar, after you install the package use gtar instead of tar and everything should work dandily

Stu
Title: Tar -x Doesn't Work
Post by: gdog on June 22, 2005, 11:09:58 pm
Quote
Download and install the gtar package, it's a real tar and not just a busybox module.

The tar busybox module that ships with Sharp ROM doesn't have half the options of the real gnu tar, after you install the package use gtar instead of tar and everything should work dandily

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85407\"][{POST_SNAPBACK}][/a][/div]

Hi Stu,

Do you happen to have a link to that gtar ipk?

Thanks,

gdog
Title: Tar -x Doesn't Work
Post by: daniel3000 on June 23, 2005, 03:19:22 am
Quote
Do you happen to have a link to that gtar ipk?

[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=85420\")

I found one:

[a href=\"http://kimux.org/liza/arc/gtar_1.13.25-1_arm.ipk]http://kimux.org/liza/arc/gtar_1.13.25-1_arm.ipk[/url]


Quote
Download and install the gtar package, it's a real tar and not just a busybox module.

The tar busybox module that ships with Sharp ROM doesn't have half the options of the real gnu tar, after you install the package use gtar instead of tar and everything should work dandily

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85407\"][{POST_SNAPBACK}][/a][/div]

Thanks! Will try that!

daniel