Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-28-2011, 10:21 PM   #1
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 560

Rep: Reputation: 38
Rsync: exclude and include filters?

Is there a way to rsync only some of the .(hidden files)?
I tried, but couldn't figure it out, and was wondering if this was possible. I want to back up some of my /home/joe/ directories as well as a few of the . files and directories, but not all.


Last edited by JosephS; 03-08-2011 at 09:51 AM.
Old 02-03-2011, 10:43 PM   #2
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 755

Rep: Reputation: 73
Read the man file for rsync,

% man rsync
And look specifically for these two options:

skip creating new files on receiver

Copy the files you want manually, then on the next runs rsync will copy those files only.

read list of source-file names from FILE

Using this option allows you to specify the exact list of files to transfer (as read from the specified FILE or - for standard input). It also tweaks the default behavior of rsync to make transferring just the specified files and directories easier:

etc. etc.

Read the man page.
1 members found this post helpful.


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
rsync can not rsync files with include filter... xiutuo Linux - Server 2 07-23-2010 02:10 AM
Rsync exclude (or include) issue eyeprotocol Linux - General 1 02-09-2010 11:08 PM
rsync include/exclude problems toaster.waffle Linux - Software 4 11-19-2009 09:57 AM
can't get rsync exclude files Batta Linux - Newbie 1 03-27-2006 10:39 PM
include/exclude apps from panel linmix Fedora 6 01-23-2005 12:25 PM

All times are GMT -5. The time now is 11:55 PM.

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