Use rsync instead of scp. Check if directories exist. May not work.