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