LinHES Forums http://forum.linhes.org/ |
|
Rsync giving me fits! http://forum.linhes.org/viewtopic.php?f=5&t=13835 |
Page 1 of 1 |
Author: | mihanson [ Thu Jan 25, 2007 5:58 pm ] |
Post subject: | Rsync giving me fits! |
Rsync is giving me fits. Can anyone help? Here's what I'm trying to do: I have a NAS box running Debian Etch RC1 where my music files are stored. My Mythbox connects to this NAS via a NFS mount on /mnt/nas. The full path to the music files (from the Mythbox) is /mnt/nas/music/ and then there are several subdirectories that contain .mp3 .flac and .shn files. Some of the subdirectories contain .txt, .jpg, .log, .md5, etc files that I do not want to transfer to my Mythbox. I am trying to use rsync keep my /myth/music directory up-to-date with the files on the NAS without transferring the unwanted .txt, .jpg, .log, .md5, etc files. I have created an exclude file for rsync called music_exclude.txt. Here are the contents of that file: Code: *.txt *.TXT *.JPG *.jpg *.shn *.SHN *.md5 *.MD5 *.log *.LOG *.lnk *.LNK *.ini *.INI mp3/A_Band/A_Album Here is my rsync command: Code: rsync -ru --delete --exclude-from=/home/mythtv/music_exclude.txt /mnt/nas/music/ /myth/music
This command ONLY gives me my mp3's, less the one directory I specified to not include as well as any directory with one of the unwanted files I'm trying to exclude. What I hope to end up with is my .mp3 and .flac files neatly organized in their current subdirectories, but without the files I listed above. I've read the rsync man pages over-and-over again, experimenting with my syntax, but I cannot seem to get the desired behavior. What I think is happening is that once rsync finds one of the unwanted files, it will not transfer the entire directory chain to the offending file, which includes files I want to transfer. Can anyone help? |
Author: | mihanson [ Thu Jan 25, 2007 7:41 pm ] |
Post subject: | |
Doh! I think I figured out why this was not working... I must have accidently deleted my flac directory on my NAS. Luckily I have it on my Windows system. ![]() |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |