implement second way for backup

If the given container id or name has volumes itself (is a data volume
container), use this container otherwise try to find the data volume
container.
This condition will always be true if the container uses volumes - even if they are attached via volumes-from.