LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-27-2006, 09:57 PM   #1
Batta
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, 10:39 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

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


Reply


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 04:27 AM
RSYNC and dot files Buto Linux - General 1 09-22-2005 02:39 PM
rsync skipping files s_siouris Linux - Software 4 04-06-2005 11:00 AM
rsync exclude list steelhead79 Linux - Software 3 01-14-2005 12:10 PM
Using the exclude option absolutely with rsync karlovac Programming 0 03-01-2004 12:39 PM


All times are GMT -5. The time now is 11:34 AM.

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