I’m planning to install solar panels on the roof of one building (the charge controller and batteries are in this building), to power a DC circuit in another building. No AC equipment needs to be powered. The buildings are around 5m apart.

Is it better to link the buildings together with AC or DC? DC would be easier as no inverter/transformer is needed, but are there any disadvantages of running a DC cable outdoors between the buildings for such a distance?

Edit: I forgot to mention the load. It’ll be max 30A 12VDC.