Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-27-2006, 10:57 PM   #1
LQ Newbie
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
can't get rsync exclude files

When I try the following rsync script in bash it doesn't exclude the Dapper_Install.txt file. Dapper_Install.txt is transferred to /media/usb0/'Linux Backup' when I don't want it to be. Why isn't exclude working, is it my syntax or is rsync bugging?

$ rsync -av --exclude=/home/chandra/Pat/Dapper_Install.txt /home/chandra/Pat/ /media/usb0/'Linux Backup'
Old 03-27-2006, 11:39 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
The example in my rsync's man page has slightly different syntax to the code you posted. Have you tried something like the following:
rsync -avuzb --exclude '*~' samba:samba/ .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP: List files in directory, exclude backups kenneho Programming 2 12-30-2005 05:27 AM
RSYNC and dot files Buto Linux - General 1 09-22-2005 03:39 PM
rsync skipping files s_siouris Linux - Software 4 04-06-2005 12:00 PM
rsync exclude list steelhead79 Linux - Software 3 01-14-2005 01:10 PM
Using the exclude option absolutely with rsync karlovac Programming 0 03-01-2004 01:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration