LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 07-29-2015, 07:53 AM   #1
rayalab
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Rep: Reputation: Disabled
exclude hidden files and directories from rsync


Hi,

I am using --exclude=".DAV" to exclude .DAV folders from rsync jobs.
But .DAV folder is also copying in target path.

This is my job when I do : ps -ef | grep rsync

www 2188 1614 0 12:07 pts/4 00:00:00 /local/rsync --exclude=".DAV" --rsync-path=/local/rsync -vt --stats --progress --compress -e /usr/bin/ssh -x -p 22 --partial-dir=/local/partial --block-size=5000 --temp-dir=/local/inbound --timeout=3600 /local/myFiles/.DAV/ignore.zip www@www.dev.com:"/local/myFiles/.DAV/ignore.zip"

Can you please tell me what I am wrong here? why .DAV hidden folder is not excluded.

PS: my rsync command is created from java which will check for every 15 mins for new files. If it finds any new files, then creates a rsync job.

Thanks.
 
Old 07-29-2015, 12:18 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] exclude hidden files from rsync rayalab Linux - Newbie 3 08-03-2015 02:12 AM
[SOLVED] Exclude all hidden files except a few with Grsync. linustalman Linux - Networking 10 05-10-2014 01:08 PM
How do I make find exclude hidden files (.files) Rotwang Linux - General 2 08-08-2011 03:58 AM
How to exclude specific directories from an rsync backup kaplan71 Linux - Software 2 05-16-2008 12:09 PM
rsync - How to Include Hidden (.something) Files and Directories? edwin11 Linux - Software 4 11-29-2006 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration