Making ASMCMD do what you want it to do... like copy files recursively...

To troubleshoot a problem I needed to copy a database's worth of files out of an ASM diskgroup and onto the filesystem. I searched around and checked help for ASMCMD assuming there was a recursive option. I found references to one in some places on the interwebs, even official Oracle references to it like Unable To Copy Directory Using ASMCMD Cp -r Command (Doc ID 829040.1) but struck out when trying to do this on 11g and 12c ASM installs.

I whipped together a python script that interacts with asmcmd in order to 1) list directories recursively and 2) create mkdir and cp commands to copy files and directories out of an ASM filesystem and into a regular filesystem.

Readme is here and the script is available here


Add new comment