View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Rsync giving me fits!
PostPosted: Thu Jan 25, 2007 5:58 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
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?

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 25, 2007 7:41 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
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. :oops:

_________________
Mike
My Hardware Profile


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu