multiple secrets file
hi all, using rsync 3.1, I need to use distinct secrets file according to what modules are being authenticated. This seems to work : (...) secrets file = /etc/rsyncd/secrets1.inc include = /etc/rsyncd/mymodules1/ secrets file = /etc/rsyncd/secrets2.inc include = /etc/rsyncd/mymodules2/ (...) ie. any modules declared in mymodules1/ will use users/passwords in secret1.inc whereas mymodules2/ modules will use secret2.inc. is it the right way to implement this ? sorry if the question has been asked before thanks Tom -- 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
map destination files files based on meta data
I am in the process of designing a photo synchronization application - basically I want to be able to copy all of the images captured throughout my home's infrastructure to a central repository. The problem that I foresee is that there may be collisions between filenames between the various computers where my family members sync their photos, movies, etc. So doing a simple rsync won't work. This is especially true of how iPhoto stores photos synced from iphones, ipads, etc. What I want to do is have the ability to map source files to a destination location / name based on meta information contained in the files. This could include exif data, or simple file meta information such at date / time. I don't want to hardcode the destination paths, because I want all of the files to be organized / copied into the same destination folder, so that it's easy to grab copies of all the files pertaining to that folder (e.g. month when photo was taken. is it possible to introduce a 'filter' or hook into rsync to compute the destination file name based on meta information. Is this a worthwhile feature to develop, or is there something already present that I have missed? -- 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: multiple secrets file
On Mon 30 Sep 2013, thomas veymont wrote: ie. any modules declared in mymodules1/ will use users/passwords in secret1.inc whereas mymodules2/ modules will use secret2.inc. is it the right way to implement this ? Well, the secrets parameter is listed under MODULE PARAMETERS in the rsyncd.conf manpage(*), so that should be fine. (*) in the 3.0.9 version at least, only just noticed 3.1.0 being out Paul -- 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: map destination files files based on meta data
It would be possible (probably not too difficult) to write a (bash ...) script that examines the exif info in all your pictures and uses that to make a separate list of files for each destination to pass to rsync. If you also filter the files by some cutoff date (like since the last time the script was run), you could avoid reprocessing the same files over and over. Once they get to rsync, it will still determine which ones actually need to be transfered. It would be relatively easy to customize such a script to meet your exact needs whereas something that was built into rsync (or into any general purpose application) would probably be less flexible. A Google for linux get exif turned up lots of URLs that look good. Joe On 09/30/2013 10:22 AM, Cary Lewis wrote: I am in the process of designing a photo synchronization application - basically I want to be able to copy all of the images captured throughout my home's infrastructure to a central repository. The problem that I foresee is that there may be collisions between filenames between the various computers where my family members sync their photos, movies, etc. So doing a simple rsync won't work. This is especially true of how iPhoto stores photos synced from iphones, ipads, etc. What I want to do is have the ability to map source files to a destination location / name based on meta information contained in the files. This could include exif data, or simple file meta information such at date / time. I don't want to hardcode the destination paths, because I want all of the files to be organized / copied into the same destination folder, so that it's easy to grab copies of all the files pertaining to that folder (e.g. month when photo was taken. is it possible to introduce a 'filter' or hook into rsync to compute the destination file name based on meta information. Is this a worthwhile feature to develop, or is there something already present that I have missed? -- 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