LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   rsync daemon or not - multiple folders (https://www.linuxquestions.org/questions/linux-general-1/rsync-daemon-or-not-multiple-folders-443354/)

yull 05-10-2006 03:23 AM

rsync daemon or not - multiple folders
 
hi

I've red you could use rsync as a daemon.
I use if to backup (synchronize) multiple windows (cygwin) pc to a linux server.

I can run it on my pc's whitout having it running as a daemon on my server.
So my question: why should a add a daemon to my server when apparentely, I don't need it?

second question:

I want to synchronize multiple folders on my laptop.
I'me using the --excludes-from end --includes-from options, but I cannot set them up for synchrizing multiple folders (on one way I'm loosing some folders, on the other I'm getting too much folders...)

is there another way for specfying wich folders have to be rsynced?
I'm not really looking forward adding a "rsync ..." line for each folder I wnat to rsync.

any help is welcome

thanks

ioerror 05-10-2006 05:34 AM

Quote:

I can run it on my pc's whitout having it running as a daemon on my server.
So my question: why should a add a daemon to my server when apparentely, I don't need it?
I'm not quite sure what you mean by this? If you rsync between two boxes, then obviously you need an rsync process running on each box. If you don't want an rsync daemon running constantly, you can either run it under inetd, or run it via ssh when you initiate the backup.

As for your second question, it's difficult to answer that without an example. What exactly is the problem? You specify the directories you want to copy/backup on the command line, --{include,exclude}-from list patterns of files/directories to be included/excluded.

PDock 05-10-2006 05:48 AM

Not aware of 'another way' but the approach that works best for me is to --excludes-from an entire directory (entry ends with a / ) and then --includes-from a specific file from the excluded directory ( entry ends with file name [no /] ). Your decision point is do you just take a whole directory or exclude it to turn around and list 85-90% of the files you just excluded.

yull 05-10-2006 07:27 AM

ioerror
Quote:

I'm not quite sure what you mean by this? If you rsync between two boxes, then obviously you need an rsync process running on each box.
Well I thought using rsync only on the windows pc to backup their sensible data to a linux server.
I don't need a daemon for doing that, simply launching an rsync on account logoff on the xp machines is enough.



PDock

Quote:

Not aware of 'another way' but the approach that works best for me is to --excludes-from an entire directory (entry ends with a / ) and then --includes-from a specific file from the excluded directory ( entry ends with file name [no /] ).
Well the include/exclued stuff is what I was trying, but without really success.
But maybe I didn't took into acount the leading '/' thing...
I'll try again doing as you said

Thanks 2 both of you.

welle 02-24-2009 05:09 AM

There is a nicely convenient tool called usbsync which has specially been desgined for the purpose of keeping a usb flash drive in sync with multiple Unix hosts.

Check it out at http://klingspor-thueringen.de/usbsync

Cheers,
welle


All times are GMT -5. The time now is 06:43 AM.