Author Topic: Tar -x Doesn't Work  (Read 2747 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Tar -x Doesn't Work
« 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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Tar -x Doesn't Work
« Reply #1 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Tar -x Doesn't Work
« Reply #2 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
You can tell a lot about a man by the condition of his shoes

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Tar -x Doesn't Work
« Reply #3 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]

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
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0