On Thu, 2010-01-21 at 09:55 +0200, Yan Valuyskiy wrote: > I believe for this you'll have to provide a kind of next include file > with --files-include option:
Thank you. What is the full string for the [OPTION "--file-include option"], saying the file name below is "rsync.list". My understanding was --files-from = no +/- (only folder/file paths), and --exclude-from/include-from = +/- > ! > + /Documents/** > + /Software/** > + /.evolution/addressbook/local/system/addressbook.db > + /.evolution/calendar/local/system/calendar.ics > + /.evolution/memos/local/system/journal.ics > + /.evolution/tasks/local/system/tasks.ics > - ** > - * > > + /NAME/** > tells to replicate a folder from $SRC path AND all its content > whatever it is going to be > > > + /.evolution/addressbook/local/system/addressbook.db > tells to replicate exact file > > > - ** will skip all other folders in any location > - * will skip any file in any location > > Thnx, > Yan > > On Thu, Jan 21, 2010 at 9:40 AM, nomnex <nom...@gmail.com> wrote: > Hi, > Linux-Ubuntu here. English is not my first language. The man > rsync is > difficult to understand. I want to backup some folders > recursively and > some files, see [1] in my /home dir to an external USB HD > (Ext4). I want > to use a text file for the purpose. > > [1] > /home/user/Documents > /home/user/Software > > /home/user/.evolution/addressbook/local/system/addressbook.db > /home/user/.evolution/calendar/local/system/calendar.ics > /home/user/.evolution/memos/local/system/journal.ics > /home/user.evolution/tasks/local/system/tasks.ics > > > First (1st) attempt > > [OPTION] --exclude-from=fileA > > [SYNTAX] fileA > > + Documents > + Documents/** > + Software > + Software/** > # > .evolution/addressbook/local/system/addressbook.db > .evolution/calendar/local/system/calendar.ics > .evolution/memos/local/system/journal.ics > .evolution/tasks/local/system/tasks.ics > # > - * > > Output: Documents & Software folders: PASS. .evolution files: > FAIL > > > Second (2nd) attempt > > [OPTION] --files-from=fileB > > [SYNTAX] fileB > > Documents > Software > # > .evolution/addressbook/local/system/addressbook.db > .evolution/calendar/local/system/calendar.ics > .evolution/memos/local/system/journal.ics > .evolution/tasks/local/system/tasks.ics > > Output: Documents & Software folders: PASS .evolution files: > FAIL > > > QUESTIONS > > What is the correct syntax of the text file > What is the correct option to use > What is the difference between --exclude-from vs include-from > vs. > --files-from > > I am thankful if you can provide easy to grasp examples and > explanations. > Bye, > nomnex > > -- > 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 > -- 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