I would like to rsync the dirs "Documents" "Sofware" and the .evolution
files only. and remove the *~ files

----------------------------------------------

Command:
#rsync -r -n -t -v --progress
--exclude-from=r2 /home/mt/ /home/mt/rsyncTest/

------------------------------------------

#text file <r1>:
+ .evolution/calendar/local/system/calendar.ics
+ .evolution/memos/local/system/journal.ics
+ .evolution/tasks/local/system/tasks.ics

- *~

+ Documents/***
+ Software/***

- *

------------------------------------------

The only way to archive the ".evolution part" is to type "a line for
each folder path"

+ .evolution
+ .evolution/calendar
+ .evolution/calendar/local
+ .evolution/calendar/local/system/** (this will work)

First question: Is there a shorter syntax to get this result, and which
one?

Second question: If I want the .evolution files copied at the root
of /rsyncTest/ (i.e. without the folder structure) what syntax or rule
do I need

Thank you.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to