Michal Soltys <nozo@xxxxxxxx> writes: > Goswin von Brederlow wrote: >> >> I was thinking Michal Soltys ment it this way. You can probably >> replace the cp invocation with an rsync one but that hardly changes >> things. >> >> I don't think you can do this in a single rsync call. Please correct >> me if I'm wrong. >> > > something along this way: > > rsync <other options> --link-dest /backup/2007-01-01/ \ > rsync://user@server/module /backup/2007-01-02/ > > It will create backup of .../module in ...-02 hardlinking to ...-01 > (if possible). > > So, no need for cp -l. There's similar example in rsync man. Also - > multiple --link-dest are supported too. Thanks, should have looked at --link-dest before replying. I wonder how long rsync had that option. I wrote my own rsync script years ago. Maybe it predates this. MfG Goswin - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html