Ionel, If you want to exclude certain directories, play with something like this: -- tar czf backup.tar.gz $(ls -1 /mnt/kd/ | sed -e "s/^cdr-.*//" -e "s/^monitor$//" -e "s/^voicemail$//") -C /mnt/kd -- This excludes cdr-*, monitor and voicemail directories.
Lonnie On Aug 26, 2015, at 5:56 PM, Ionel Chila <ionelch...@yahoo.com> wrote: > Thanks Lonnie. I really need the exclude folder option. I am trying to > exclude the "monitor" folder which got 4 years worth of .wav files. Will be > hard to list every file :-) and they keep adding every day. > > How come this version of tar does not have the folder exclude option? Strange > > > > On Wednesday, August 26, 2015 1:00 PM, Lonnie Abelbeck > <li...@lonnie.abelbeck.com> wrote: > > > Ionel, > > Our 'tar' is implemented via Busybox > -- > pbx3 ~ # tar -h > BusyBox v1.19.4 (2015-08-25 17:52:46 CDT) multi-call binary. > > Usage: tar -[cxtZzjahvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]... > > Create, extract, or list files from a tar file > > Operation: > c Create > x Extract > t List > f Name of TARFILE ('-' for stdin/out) > C Change to DIR before operation > v Verbose > Z (De)compress using compress > z (De)compress using gzip > j (De)compress using bzip2 > a (De)compress using lzma > O Extract to stdout > h Follow symlinks > exclude File to exclude > X File with names to exclude > T File with names to include > -- > > I have used the -X excludefile option before, add your excluded files one per > line in "excludefile" > > Lonnie > > > On Aug 26, 2015, at 12:51 PM, Ionel Chila <ionelch...@yahoo.com> wrote: > >> is the --exclude folder function broken in the current Astlinux tar version? >> It doesn't work for me ? >> >> Many thanks >> Ionel Chila > >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Astlinux-users mailing list >> Astlinux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to >> pay...@krisk.org. > > > ------------------------------------------------------------------------------ _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.