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
-
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
-
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
-
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
-
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]
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