Friday, July 6, 2012

Moving alf_data

Transfering large repositories to new servers (upgrade, backup) - can be time consuming and this can mean downtime for users. Further more often networks can be loaded.So lets do all in one go ....

In remote terminal at source host:

cd /opt/alfresco; tar jcf - alf_data/ | ssh -o 'Compression no' <user>@<host> 'tar jxf -'

Or in terminal at destination host (reverse, pipe back):

ssh -o 'Compression no' <user>@<host> 'cd /opt/alfresco; tar jcf - alf_data/' | tar jxf -

I turn of ssh compresion and above provide reverse method, if you only have acces oneway ....

No comments:

Post a Comment