Two batteries in parallel by a long cable
2.5mm copper wire has a resistance of about 3.5m&ohm; per meter, so your 30 meter cable is about 0.0035 * 30 * 2 = 0.21&ohm;. How much effect this will have depends on the type of battery, their capacities, the available charging current, and what charging algorithm is used.

For example, if both batteries are 100Ah flooded lead-acid type, and the charger is delivering a constant 20A up to a float voltage of 13.8V, the initial situation (both batteries less than 50% charged) is something like this:-







simulate this circuit &ndash; Schematic created using CircuitLab

R1 and R2 are the internal resistances of the batteries. The charging current will split between the batteries, but not equally because the cable resistance has increased the effective resistance of BAT2 to 260m&ohm;, 5 times higher than BAT1. Therefore BAT1 will get 5 times more of the current than BAT2 (17A vs 3A), and charge up 5 times quicker.        

As BAT1 is charging faster at higher current, its internal voltage will rise faster and reduce the difference in charging currents. The relationships between state of charge, voltage, current and resistance are not linear so calculating the exact charging currents is difficult, but BAT2 will always get significantly less current and lag behind.     

If the float voltage is maintained for long enough then BAT2 will eventually reach full charge. But how long will it take? As well as charging slower during the 'bulk' phase, it will also take 5 times longer to become to become fully charged after reaching float voltage (the 'absorption' phase). Depending on how many sunlight hours your solar panels get per day, this may take several days or even weeks.

Meanwhile you may use the batteries to power some devices. Provided the connection is made to BAT1 the discharge current will also split unevenly (with BAT1 providing the most) so even if BAT2 hasn't reached full charge it should be safe to run them both down together. However you should not connect devices directly to BAT2, because then it would be discharged faster than BAT1 and require an even longer recharge time. 

At high discharge current this arrangement will be less efficient than having both batteries in the same location, because there is loss in the cable and the unevenly split current reduces the effective capacity of BAT2 (since you must stop drawing current when BAT1 reaches cutoff voltage, but BAT2 was discharging at a lower rate so it may still have charge left in it).