LINBIT / csync2

file synchronization tool using librsync and current state databases
GNU General Public License v2.0
145 stars 39 forks source link

Create missing parent dir #9

Open bes-internal opened 5 years ago

bes-internal commented 5 years ago

I did not find the option to automatically create parent directories. It would be very convenient to do for inital run (-TI) and indeed always.

Use case. Add a new host to the group and initialize it as csync2 -TI -U -v. I would like a kind of push of all files to occur even if not the entire (parent) directory structure is created on the remote side.

sjvudp commented 3 years ago

The real problem is that there is no reasonable error message. Even more: On a target host there is a message like "Updated /etc/missing/file from host." when missing is actually missing (before and after the command). And it says "Finished with 0 errors.". Seen on SLES15 SP2 with csync2-2.0+git.1461714863.10636a4-4.3.1.x86_64.