Re: Help with correct text file syntax EXCLUDE/INCLUDE + OPTION
Yan, I might be tired from repeated tries. It still fail. m...@fmv:~$ rsync -rvt --include-from=rsyncfinal /home /home/rsynctest sending incremental file list [sender] hiding directory home because of pattern ** delta-transmission disabled for local transfer or --whole-file total: matches=0 hash_hits=0 false_alarms=0 data=0 sent 10 bytes received 12 bytes 44.00 bytes/sec total size is 0 speedup is 0.00 On Thu, 2010-01-21 at 11:26 +0200, Yan Valuyskiy wrote: > You are right it was my mistake , use --include-from = FILENAME > > On Thu, Jan 21, 2010 at 11:19 AM, nomnex wrote: > I can not get it to work > > http://pastebin.com/f432bf596 > > > > On Thu, 2010-01-21 at 18:05 +0900, nomnex wrote: > > 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 > 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 >
Re: Help with correct text file syntax EXCLUDE/INCLUDE + OPTION
I can not get it to work http://pastebin.com/f432bf596 On Thu, 2010-01-21 at 18:05 +0900, nomnex wrote: > 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 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
Re: Help with correct text file syntax EXCLUDE/INCLUDE + OPTION
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 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