antirek / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 1 forks source link

Another binary/script with parameters #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 
I don't know, if my question is right here (sorry for bad english ;) )

I have Archlinux and install lsyncd-1.37.

I plan to bild a backup like windows shadowcopy. 
I find incron, but incron can't watch recusive. 

In find --binary in the lsyncd manpage. Start lsyncd only the binary, or can I 
give the binary parameters (varied filename /path) ?

If I can use parameters, then I wirte a bash script and use cp to copy the file 
like that: 

################################
time=$(date '+%H_%M')
cp -r "$1" "/path/to/the/backups/$(date '+%Y')/$(date '+%m')/$(date 
'+%d')/$time"
################################

$1 is the parameter of the file, witch is, varied. 

Thanks
GerhardSchr

PS.: If I must write these question somewhere else, please tell me this :)

Original issue reported on code.google.com by gerhard....@googlemail.com on 16 Aug 2010 at 9:35

GoogleCodeExporter commented 9 years ago
oh the Type "Defect" these I did not want.

Original comment by gerhard....@googlemail.com on 16 Aug 2010 at 9:37

GoogleCodeExporter commented 9 years ago
please use the discussion list for questsions

http://groups.google.com/group/lsyncd

kind regards, axel

Original comment by axk...@gmail.com on 16 Aug 2010 at 10:31

GoogleCodeExporter commented 9 years ago
ok thanks

Original comment by gerhard....@googlemail.com on 16 Aug 2010 at 10:45

GoogleCodeExporter commented 9 years ago

Original comment by axk...@gmail.com on 16 Aug 2010 at 11:04